Small fixes to style/properties code

Found a few issues while updating the XAML export rewrite to the new styling library.

  • stop-color was 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 inherit only 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/ellipse only the group was replaced, but not the ellipse (so descendant-or-self::svg:g/ellipse instead of descendant-or-self::svg:g/svg:ellipse).
  • The CSS Parser Library chokes on @font-face or @import declarations, so ignore them for now

Merge request reports

Loading