Closed Bug 2083454 Opened 1 month ago Closed 28 days ago

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

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Elika Etemad <fantasai.bugs@inkedblade.net> wrote:

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

WebKit export from bug: REGRESSION(<!---->Safari 27)<!---->:<!----> CSS anchor positioning fails inside modal dialog when page is scrolled

<pre>
REGRESSION(Safari 27): anchored box inside modal dialog missing if page is scrolled

<a href="https://commits.webkit.org/311715@main">311715@main</a> rewrote the body of offsetFromAncestorContainer() to use
localToContainerQuad(); however in the process it lost the ancestor checks
for isFixed. This is causing the anchor position to be incorrectly calculated
when layout happens after scrolling away from the origin--for example
if a fixed box contains a non-positioned anchor for an anchor-positioned
fixed child--resulting in the anchored box being laid out offscreen, and
thus entirely invisible.

This updates our isFixed() helper to handle boxes that don't themselves
have a RenderLayer, which fixes this problem... and prossibly some other
scenarios as well.

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

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

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

Total 535 tests

Status Summary

Firefox

OK : 263
PASS: 1[GitHub] 42[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 13560[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 13742[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] 13757[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 13760[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 138[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 166[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 169[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 183[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

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

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