[Webkit-unassigned] [Bug 139266] New: A <tspan display="none"> is ignored completely when specifying multiple midpoints in the parent text content element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 4 12:48:39 PST 2014


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

            Bug ID: 139266
           Summary: A <tspan display="none"> is ignored completely when
                    specifying multiple midpoints in the parent text
                    content element
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com
                CC: zimmermann at kde.org

Open the following svg in WebKit:

<svg xmlns="http://www.w3.org/2000/svg">
  <text x="100 150 200 250" y="100"><tspan display="none">12</tspan>34</text>
  <text x="200 250 300 350" y="150">34</text>
</svg>

Result: The letters '3' and '4' are not aligned vertically in the two lines.
Expected:  The letters '3' and '4' should be displayed at the same vertical positions (200 and 250) in the two lines.

The W3C specs http://www.w3.org/TR/SVG/painting.html#DisplayProperty says that if the property 'display' is set to 'none', the element will not be part of the rendering tree.  The element will not take space nor will its contents be rendered on the page.  But the specs does not say that the characters' indices of the <tspan display="none"> tag will be ignored when specifying multiple mid-points in the parent text content element.  So it is fair to expect the beginning of the following text to be shifted to the same mid-point as if display="none" were not specified in the previous <tspan> tag.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141204/2328a1e3/attachment-0002.html>


More information about the webkit-unassigned mailing list