[Webkit-unassigned] [Bug 83586] New: REGRESSION: <use> in combination with <tref> does not recognize text by id positioned later in the DOM

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 10 09:29:21 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=83586

           Summary: REGRESSION: <use> in combination with <tref> does not
                    recognize text by id positioned later in the DOM
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL: http://svg-wow.org/buffered-rendering/bokeh.svg
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: krit at webkit.org
                CC: rwlbuis at gmail.com, zimmermann at kde.org


Created an attachment (id=136471)
 --> (https://bugs.webkit.org/attachment.cgi?id=136471&action=review)
Reproduction

The SVG <use> tag does not recognize text elements that are positioned later in the DOM if the text element itself has a reference to another text with <tref>.

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<use xlink:href="#t"/>
<defs>
  <text id="top" x="0" y="50">Text</text>
  <text id="t" x="0" y="50"><tref xlink:href="#top"/></text>
</defs>
</svg>

This does not work because of the <tref> element and it's reference to #top. It works if the def section is above the use element.

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
  <text id="top" x="0" y="50">Text</text>
  <text id="t" x="0" y="50"><tref xlink:href="#top"/></text>
</defs>
<use xlink:href="#t"/>
</svg>

Even the following example works. Note that the referenced text of <tref> is after the use element.

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
  <text id="t" x="0" y="50"><tref xlink:href="#top"/></text>
</defs>
<use xlink:href="#t"/>
<defs>
  <text id="top" x="0" y="50">Text</text>
</defs>
</svg>

This problems causes the issues with the text on http://svg-wow.org/buffered-rendering/bokeh.svg . You can not see the 3D effect like on Opera or Firefox.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list