Closed Bug 2085388 Opened 1 month ago Closed 24 days ago

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

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox162 fixed)

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 64004 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64004
Details from upstream follow.

Antti Koivisto <antti@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327912

WebKit export from bug: [<!---->SVG text]<!----> Enable the SVG 2 text layout algorithm by default

<pre>
[SVG text] Enable the SVG 2 text layout algorithm by default

Turn on SVG2TextLayoutAlgorithmEnabled.

Test changes:

  • svg/batik/text/xmlSpace.svg: a collapsible space that follows a preserved space is now kept, as
    the line layout decides whitespace. This matches Chrome and Firefox.
  • svg/batik/text/textLayout.svg: spacingAndGlyphs with word-spacing now dumps the stretched
    positions of each word instead of unstretched positions under a single transform. The rendering is
    the same.
  • svg/batik/text/textLength.svg: spacingAndGlyphs with text-anchor now dumps the start of the
    stretched text, for example 225 - 50 / 2 = 200 for textLength="50" at x="225", instead of the
    unstretched anchored position under a transform. The rendering is the same.
  • svg/custom/glyph-transformation-with-hkern.svg, svg/text/font-size-below-point-five.svg,
    svg/zoom/page/zoom-mask-with-percentages.svg: 0.01px width differences.
  • GTK and WPE: 1px text box size differences in svg/ text tests.
  • WPT textLength-list-x-spacingAndGlyphs.svg: fix the test. It expected the explicit x positions to
    move with the glyph stretching. That is wrong per spec, which applies absolute positions after
    textLength, and Chrome and Firefox fail the test on wpt.fyi. The test and the reference now expect
    each glyph to stretch in place at its x position. What the test is about, textLength applying
    across the whole element instead of to each chunk (webkit.org/b/61855), is not affected.
  • mozilla/svg/text/textLength-5.svg and WPT textLength-list-y-spacing.svg now pass.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=327912">https://bugs.webkit.org/show_bug.cgi?id=327912</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/324088@main">https://commits.webkit.org/324088@main</a>
</pre>

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 88 tests

Status Summary

Firefox

PASS: 1[GitHub] 2[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 66[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] 67[Gecko-windows11-64-25h2-debug] 68[Gecko-windows11-64-25h2-opt] 69[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 19[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 20[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 22[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: 1

Safari

FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

  • /svg/text/reftests/transform-dynamic-change.html [wpt.fyi]: PASS [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-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-opt], SKIP [Gecko-windows11-64-25h2-debug]
Status: NEW → RESOLVED
Closed: 24 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.