GNOME Bugzilla – Bug 630112
tref should use flattened text
Last modified: 2011-11-10 20:58:39 UTC
Created attachment 170620 [details] Testcase We use a dom tree fragment for a tref rendering: if the referenced element has tspan children, those elements affect the rendering (x, y, fill, stroke, font-size, etc.). But we should use flattened text. In this case, "world" in the tref is rendered in red instead of green. <defs> <text id="text1">Hello, <tspan fill="red">Wolrd!</tspan></text> </defs> <text fill="green"><tref xlink:href="#text1"/></text> New W3C's SVG 1.1 Test suite will include a test of this. http://dev.w3.org/SVG/profiles/1.1F2/test/harness/htmlObject/text-tref-03-b.html
Created attachment 170621 [details] [review] Patch
Could you update the patch for librsvg master (or 2.24.1, if you prefer)? I'll apply it then.
Created attachment 201122 [details] [review] Updated Patch In updated patch, I changed the name of the argument (onlytext -> usetextonly) # There may be better name though... SVG 1.1 Test Suite now contains two tests related to this bug: http://www.w3.org/Graphics/SVG/Test/20110816/harness/htmlObjectApproved/text-tref-02-b.html http://www.w3.org/Graphics/SVG/Test/20110816/harness/htmlObjectApproved/text-tref-03-b.html
Thanks! Pushed to git master.