[Webkit-unassigned] [Bug 215258] New: SVG textPath startOffset unitless decimals values are interpreted as relative to the path length
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 6 23:58:43 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=215258
Bug ID: 215258
Summary: SVG textPath startOffset unitless decimals values are
interpreted as relative to the path length
Product: WebKit
Version: Safari 13
Hardware: Macintosh
URL: https://codepen.io/gingerchris/pen/WNwbEym
OS: macOS 10.14
Status: NEW
Severity: Normal
Priority: P2
Component: SVG
Assignee: webkit-unassigned at lists.webkit.org
Reporter: chrisdowling84 at gmail.com
CC: zimmermann at kde.org
Created attachment 406155
--> https://bugs.webkit.org/attachment.cgi?id=406155&action=review
Image showing two textPaths, one with percentage and one with decimal startOffset - both render identical in Safari
When specifying a unitless decimal value for the startOffset attribute of a textPath element, I would expect the text to be indented by an absolute amount - the specified distance in the user's coordinate system (see https://www.w3.org/TR/SVG11/text.html#TextPathElementStartOffsetAttribute).
EG. `startOffset="0.4"` I would expect to indent the text 0.4 units
Instead what happens is the decimal is interpreted as a fraction of the total path length. So a value of `0.4` is the same as `40%`.
In the attached SVG and the linked CodePen the two textPaths should render with the text offset by different amounts. In Safari they appear identical.
--
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/20200807/d13a2323/attachment.htm>
More information about the webkit-unassigned
mailing list