Small fixes to style/properties code
Found a few issues while updating the XAML export rewrite to the new styling library.
-
stop-colorwas marked as inheritable, which is wrong. - If two attributes were inherited, but the second overwritten in the child, the parent value was taken nonetheless.
- explicit
inheritonly worked on non-inheritable attributes - if an attribute is set to inherit, but the parent attribute is not set,
style()now returns the default value if we know the attribute - The regex for namespace adding consumed one char too much, leading to the bug that in
descendant-or-self::g/ellipseonly the group was replaced, but not the ellipse (sodescendant-or-self::svg:g/ellipseinstead ofdescendant-or-self::svg:g/svg:ellipse). - The CSS Parser Library chokes on
@font-faceor@importdeclarations, so ignore them for now