In my quest to use SVGs, after adding clip-path and dashes support in our JUCE branch (https://github.com/soundradix/JUCE), I found the next reason for which the SVGs from our designer don't render right - masks.
Note that masks (at least those from our SVGs, created in Adobe Illustrator) aren't supported in Safari too (though they are supported in Chrome and Firefox).
My question is: How would one go for supporting masks?
I see that Graphics has reduceClipRegion to an Image. We could add to DrawableShape a "ScopedPointer<Drawable> mask", render it to a temporary Image on DrawableShape::paint and then use the image reduceClipRegion method. Does this sound like a reasonable way to go?