svgtypes icon indicating copy to clipboard operation
svgtypes copied to clipboard

Allow quotes in FuncIRI

Open RazrFalcon opened this issue 5 years ago • 2 comments

This is a correct FuncIRI: fill="url('#gfuser')"

RazrFalcon avatar Feb 27 '20 22:02 RazrFalcon

The author of the immage wrote at https://commons.wikimedia.org/w/index.php?title=User_talk:Glrx&oldid=399206211#fill=%22url('#gfuser')%22_allowed

See https://svgwg.org/svg2-draft/painting.html#FillProperty that says the fill presentation property in SVG 2 may be of type . See https://svgwg.org/svg2-draft/painting.html#SpecifyingPaint that says may be a CSS value. See https://www.w3.org/TR/css3-values/#url-value that says a is url(...). See https://www.w3.org/TR/css3-values/#string-value that says a string may use single or double quotation marks See https://www.w3.org/TR/css3-values/#urls that says a string inside url(...) may be written without quotation marks.

So it is definitly a SVG2.0, but not shure about SVG 1.1.

JoKalliauer avatar Feb 28 '20 07:02 JoKalliauer

Thanks for clarification. I think I will add it anyway, since it doesn't affect much.

RazrFalcon avatar Feb 28 '20 07:02 RazrFalcon

Just stumbled upon an SVG file that was rendered as black-and-white by resvg and found out it was because of quotes around the IDs. I opened a pull request to add the support for quotes, would appreciate if you could take a look @RazrFalcon. Thanks!

SVG

quotes_in_iri

resvg output

Copy of Untitled (6)

romanzes avatar Sep 27 '23 06:09 romanzes