Closed Bug 2086355 Opened 1 month ago Closed 18 days ago

[wpt-sync] Sync PR 64266 - Freeze changed scrollbars when sizing position-try candidates

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 64266 into mozilla-central (this bug is closed when the sync is complete).

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

Sharon Yang <yangsharon@igalia.com> wrote:

Freeze changed scrollbars when sizing position-try candidates

Previously when evaluating position-try candidates, a real layout that
committed side effects was being run. This included an option that
required a scrollbar, which was persisted on the
PaintLayerScrollableArea and affected the next candidate's
measurements.

This is fixed by following the pattern in LayoutOOFNode(), which
records the scrollbars before computing the dimensions. If they change,
the changed scrollbars are frozen and recomputed until stable.

This fixes the following tests:

  • external/wpt/html/semantics/forms/the-select-element/customizable-select/select-appearance-fallback-bottom-left.html
  • external/wpt/html/semantics/forms/the-select-element/customizable-select/select-appearance-fallback-bottom-right.html

The following test was added:
Bug: 382679385

  • external/wpt/css/css-anchor-position/position-try-fallbacks-scrollbar.html

Bug: 382679385
Change-Id: I1dda22a44c29fbc33c5ac2fa091fa1e4c7a86dcb
Reviewed-on: https://chromium-review.googlesource.com/8301035
WPT-Export-Revision: e1208ce07f31d21dffc7f710aadc7b51ebb06dcc

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
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 535 tests

Status Summary

Firefox

OK : 1[GitHub] 264[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] 42[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 13572[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 13753[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] 13768[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 13771[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt]
FAIL: 127[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 155[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 158[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 172[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

OK : 1
FAIL: 1

Safari

OK : 1
PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c6be4d2ec7e9 https://hg.mozilla.org/integration/autoland/rev/65ae772006f5 [wpt PR 64266] - Freeze changed scrollbars when sizing position-try candidates, a=testonly
Status: NEW → RESOLVED
Closed: 18 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.