Distinguish between properties and presentation attributes
https://svgwg.org/svg2-draft/styling.html#PresentationAttributes has a list of properties which have a presentation attribute. Librsvg should distinguish between them:
-
parse_one_presentation_attribute
attempts to do so by callingparse_property(..., false)
, which means to not accept shorthand properties, so that e.g.marker="foo"
is not a valid attribute, because themarker
property is a shorthand and is not a presentation attribute. - The
make_properties!
macro knows which properties are shorthands, but doesn't know which ones have presentation attributes. I think we should start by doing that; then the behavior of not parsing shorthands as presentation attributes can be obviated by that.
Edited by Federico Mena Quintero