[Webkit-unassigned] [Bug 139258] New: dominant-baseline in an SVG <text> tag is not inherited by its children <tspan> tags

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 4 09:51:47 PST 2014


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

            Bug ID: 139258
           Summary: dominant-baseline in an SVG <text> tag is not
                    inherited by its children <tspan> tags
    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

<svg xmlns="http://www.w3.org/2000/svg">
  <line x1="0" y1="200" x2="100%" y2="200" style="stroke:rgb(255,0,0);stroke-width:1" />
  <text x="20" y="200" dominant-baseline="central" font-size="50px">
    foo<tspan>bar </tspan><tspan>baz</tspan>
  </text>
</svg>

Result: The first word "foo" is the only text which is rendered with alignment equal to "central". The rest of the text in the <tspan> tags is rendered with alignment equal to "alphabetic".

The w3c specs http://www.w3.org/TR/SVG/text.html says about the value "auto" of the dominant-baseline, which is the default: "If this property occurs on a ‘tspan’, ‘tref’, ‘altGlyph’ or ‘textPath’ element, then the dominant-baseline and the baseline-table components remain the same as those of the parent text content element."

So it is expected to have all the text in the <tspan> tags in the svg above to be rendered with the same alignment as the parent text content element's alignment.

-- 
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/c5875a5b/attachment-0002.html>


More information about the webkit-unassigned mailing list