resvg icon indicating copy to clipboard operation
resvg copied to clipboard

Add support for `context-fill` and `context-stroke`

Open LaurenzV opened this issue 8 months ago • 20 comments

Here is the corresponding specification.

This is still a WIP, in particular, the following I still haven't looked into more deeply (as I'm still unfamiliar with the codebase) and I think might be a bit tricky to implement:

When the context paint layers include paint server references, then the coordinate space and the bounding box used to scale the paint server elements and content are those of the context element. In other words, any gradients and patterns referenced with these keywords should be continuous from the main shape to the markers, or from one element within a use-element shadow tree to another.

But I'm opening this as a draft PR so that people know that someone is working on it. 😄

I also had to temporarily switch to my own version of svgtypes since it's not included in this repository.

LaurenzV avatar Oct 11 '23 21:10 LaurenzV