Why not svg filters to create alpha channels? Seems to be supported by the library too (very useful btw!).