Re: [svgwg] fill-rule Could Use Some Clarification

The sort of union and difference operators mentioned in the stack overflow question used to be a part of SVG vector effects; they were dropped form SVG2 unfortunately.
As the answers on stack overflow state, the component elements need to be paths (or text, in which case it is the geometry of the glyph outlines that are used). But only on a single element. SVG does not currently have a way to say "take this shape and then subtract from it this other shape".
fill-rule can be set on an ellipse, for example, but an ellipse is not self-intersecting so it has no effect.
Yes, the test suite should have tests added for fill-rule on shapes that can be self intersecting (like polyline) and for text elements.

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/344#issuecomment-328979933 using your GitHub account

Received on Tuesday, 12 September 2017 20:48:14 UTC