[Webkit-unassigned] [Bug 139322] New: Setting the "vector-effect" attribute in the SVG <text> tag to "non-scaling-stroke" has no effect

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 5 16:20:06 PST 2014


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

            Bug ID: 139322
           Summary: Setting the "vector-effect" attribute in the SVG
                    <text> tag to "non-scaling-stroke" has no effect
    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">
  <g id="g" style="font: 16px sans-serif; text-rendering: geometricPrecision" transform="scale(2)">
    <text x="50" y="50" stroke="blue" stroke-width="3">hello there</text>
  </g>
  <g id="g" style="font: 16px sans-serif; text-rendering: geometricPrecision" transform="translate(0, 100) scale(2)">
    <text x="50" y="50" stroke="blue" stroke-width="3" vector-effect="non-scaling-stroke">hello there</text>
  </g>
  <g id="g" style="font: 32px sans-serif; text-rendering: geometricPrecision" transform="translate(0, 200)">
    <text x="100" y="100" stroke="blue" stroke-width="3" >hello there</text>
  </g>
</svg>

Result: The stroke of the text in the first and the second lines are scaled up.
Expected: 
- Only the first line should have the stroke width scaled up. 
- The second line is scaled using transform="translate(0, 100) scale(2)" but the attribute vector-effect="non-scaling-stroke" is added to the <text> tag. So the stroke width should not scale up.
- The third line is scaled manually: the font size (in the <g> tag), the x and the y (in the <text> tag) are doubled.

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


More information about the webkit-unassigned mailing list