Closed Bug 2080188 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63430 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=311609

Categories

(Core :: SVG, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
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> element

SVG2 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>

Component: web-platform-tests → SVG
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

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

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.