Open stanio opened 2 weeks ago
I'm not sure behaviour of other implementations actually is correct here. Per the spec https://svgwg.org/svg2-draft/painting.html#PaintOrder the paint-order
property is only allowed on the following elements
It is inherited though that should only apply to text content elements as out of the above elements only text
actually is a container type (in the sense that is can have visible children).
Looks similar to the fill
attribute. It is said it applies to just shapes and text content elements but then it is inherited and one could specify fill="..."
on the root <svg>
or <g>
element – that one is handled by JSVG.
I think "applies to" and which element could specify the attribute are two different parts. The <use>
element is specified to have presentation attributes that include paint-order
. "Style Scoping and Inheritance" further specify how these apply to referenced elements.
Ah it has been to long since I worked on inherited properties. This makes a lot of sense.
Should be fixed in current snapshot
Tested with current 1.5.1-SNAPSHOT – works as expected now.
```xml ```use-paint-order.svg