Page MenuHomePhabricator

Png rendering of svg upload is missing the included <use> elements
Closed, InvalidPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

Upload of svg file that includes <use> elements
https://commons.wikimedia.org/wiki/File:Flag_of_Couvin.svg

What happens?:

The <use> elements are ignored by the png renderer, and thus the previews are (consistently) incorrect. The svg seems to function just fine, though.

What should have happened instead?:

The shield on the flag should have displayed correctly on the rendered png's

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

Event Timeline

I see that there's more connected to this than I had imagined, but still: in this case the <use> element inside the clipPath DOES reference a <path> directly, so I don't see why this shouldn't work.

JoKalliauer triaged this task as Lowest priority.
JoKalliauer moved this task from Backlog to Patch merged upstream on the Upstream board.
JoKalliauer subscribed.

@Qaz_Janssen You are using SVG2.0-draft. The current released Standard is SVG1.1.
Therefore the rendering of c-librsvg2.40 is strictly speaking correct, and your SVG is broken. (Most Browsers and the current rust-librsvg2.54 will render it according to SVG2.0, which is not released.)

However the broken SVG could be fixed with https://svgworkaroundbot.toolforge.org/