Closed Bug 2076656 Opened 2 months ago Closed 1 month ago

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

Categories

(Core :: Layout: Grid, task, P4)

task

Tracking

()

RESOLVED FIXED
159 Branch
Tracking Status
firefox159 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Ahmad Saleem <ahmad.saleem792+github@gmail.com> wrote:

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

WebKit export from bug: Subgrid implicit grid-area line name is matched by first substring instead of suffix

<pre>
Subgrid implicit grid-area line name is matched by first substring instead of suffix

This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.

Implicit grid line names are formed as "<area>-start" / "<area>-end". When
resolving such a name for a subgrid, StyleGridPositionsResolver located the
suffix with String::find(), which matches the first occurrence anywhere in
the name. For an area whose own name ends in "-end" (e.g. "x-end"), the line
name "x-end-end" matched the leading "-end" and was attributed to area "x"
instead of "x-end", placing the item on the wrong line.

Match the "-start"/"-end" suffix with endsWith() and strip it from the end of
the name so the correct area name is recovered.

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

Component: web-platform-tests → Layout: Grid
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 139 tests and 8 subtests

Status Summary

Firefox

OK : 1[GitHub] 24[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-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 1[GitHub] 13[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 202[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 298[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-debug, Gecko-windows11-64-25h2-opt]
FAIL: 63[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 69[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-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 1
PASS: 1

Safari

OK : 1
FAIL: 1

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: --- → 159 Branch
You need to log in before you can comment on or make changes to this bug.