[wpt-sync] Sync PR 63430 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=311609
Categories
(Core :: SVG, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63430 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63430
Details from upstream follow.
Ahmad Saleem <ahmad.saleem792+github@gmail.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=311609
WebKit export from bug: [SVG2] Implement the side attribute for SVG <textPath> element
<pre>
[SVG2] Implement the side attribute for SVG <textPath> elementSVG2 adds the 'side' attribute to <textPath> with values 'left' (default)
and 'right' [1]. Per the spec, side="right" lays the text out along the
reversed path, which renders it on the opposite side of the curve. WebKit
did not expose the attribute on the DOM or honor it during layout.Expose 'side' as an SVGAnimatedEnumeration (SVGTextPathSideType, with the
TEXTPATH_SIDETYPE_LEFT/RIGHT constants), mirroring the existing 'method'
and 'spacing' enumerations, with 'left' as the lacuna value and invalid
values reset to the initial value 'left' via the shared parseBaseVal
helper (matching method/spacing). The SVG WG resolved to add the side
constants to the SVGTextPathElement IDL [3].For rendering, walking the reversed path at arc length t is equivalent to
sampling the forward path at (pathLength - t) and rotating each glyph by
180 degrees, so no path-reversal primitive is needed (WebCore::Path has
none). SVGTextLayoutEngine carries a reversed flag set from the textPath
renderer and applies the mirrored sampling and angle flip in the path
layout loop; the existing baseline/orientation math composes correctly
because it operates on the reversed tangent angle.[1] <a href="https://w3c.github.io/svgwg/svg2-draft/single-page.html#text-TextPathAttributes">https://w3c.github.io/svgwg/svg2-draft/single-page.html#text-TextPathAttributes</a>
[2] <a href="https://github.com/w3c/svgwg/issues/1086">https://github.com/w3c/svgwg/issues/1086</a>
[3] <a href="https://www.w3.org/2026/04/23-svg-minutes.html">https://www.w3.org/2026/04/23-svg-minutes.html</a>WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=311609">https://bugs.webkit.org/show_bug.cgi?id=311609</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/323115@main">https://commits.webkit.org/323115@main</a>
</pre>
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=102796
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 83 tests
Status Summary
Firefox
PASS: 2[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, GitHub] 60[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 62[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 63[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 20[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 21[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 23[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
Chrome
PASS: 2
Safari
FAIL: 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /svg/text/reftests/text-bidi-controls-anchors-2.svg [wpt.fyi]:
FAIL[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /svg/text/reftests/text-complex-001.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-complex-002.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-inline-size-001.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-inline-size-002.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-inline-size-003.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-inline-size-005.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-inline-size-006.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-inline-size-007.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-inline-size-101.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-inline-size-201.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-multiline-001.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-multiline-002.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-multiline-003.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-shape-inside-001.svg [wpt.fyi]:
FAIL - /svg/text/reftests/text-shape-inside-002.svg [wpt.fyi]:
FAIL - /svg/text/reftests/textLength-list-x-spacingAndGlyphs.svg [wpt.fyi]:
FAIL - /svg/text/reftests/textpath-pathlength-css-display-none.tentative.svg [wpt.fyi]:
FAIL - /svg/text/reftests/textpath-pathlength-zero-offset-percentage.svg [wpt.fyi]:
FAIL - /svg/text/reftests/textpath-shape-001.svg [wpt.fyi]:
FAIL - /svg/text/reftests/textpath-side-001.svg [wpt.fyi]:
FAIL[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt] - /svg/text/reftests/textpath-side-003.svg [wpt.fyi]:
FAIL[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt],PASS[Gecko-linux2404-64-debug,Gecko-linux2404-64-opt] - /svg/text/reftests/textpath-side-005.svg [wpt.fyi]:
FAIL
Description
•