Open
Bug 1447169
Opened 6 years ago
Updated 2 years ago
<textPath> position is (incorrectly?) influenced by "y" on parent <text> elem, if it's the first child of that elem
Categories
(Core :: SVG, defect, P3)
Core
SVG
Tracking
()
UNCONFIRMED
Tracking | Status | |
---|---|---|
firefox61 | --- | affected |
People
(Reporter: dholbert, Unassigned)
References
Details
Attachments
(2 files)
STR: 1. Load attached testcase. (The first row has "y" set on the <text> elements. The second row does not.) EXPECTED RESULTS: The "PATH" text should all be in the same position in each box. ACTUAL RESULTS: In the first and third box (the only cases where there's nothing before the <textPath> element), the "PATH" text is shifted down and to the left (partially out of view). (I noticed this bug when playing around with a new reftest, in bug 1446650 comment 2.)
Reporter | ||
Comment 1•6 years ago
|
||
Reporter | ||
Comment 2•6 years ago
|
||
Chrome 65 and Edge 16 give "EXPECTED RESULTS".
Reporter | ||
Comment 3•6 years ago
|
||
Robert, maybe you'd be interested in taking a look as part of the textPath work that you're doing?
Flags: needinfo?(longsonr)
Comment 4•6 years ago
|
||
Not sure this isn't intentional by Cam per https://dxr.mozilla.org/mozilla-central/rev/6ff60a083701d08c52702daf50f28e8f46ae3a1c/layout/svg/SVGTextFrame.cpp#4576 The spec (https://www.w3.org/TR/SVG2/text.html#TextpathLayoutRules) has this to say... When the inline-base direction is horizontal, then any ‘x’ attributes on ‘text’ or ‘tspan’ elements represent new absolute offsets along the path, thus providing explicit new values for startpoint-on-the-path. Any ‘y’ attributes on ‘text’ or ‘tspan’ elements are ignored. When the inline-base direction is vertical, then any ‘y’ attributes on ‘text’ or ‘tspan’ elements represent new absolute offsets along the path, thus providing explicit new values for startpoint-on-the-path. Any ‘x’ attributes on ‘text’ or ‘tspan’ elements are ignored.
Flags: needinfo?(longsonr)
Updated•5 years ago
|
Status: NEW → UNCONFIRMED
Ever confirmed: false
Comment 6•4 years ago
|
||
Chrome doesn't support side at all.
Comment 7•4 years ago
|
||
Comment 8•4 years ago
|
||
bug 1677187 makes us more like Chrome. Not sure whether the third testcase (after) is still wrong or not though.
Depends on: 1677187
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•