Closed Bug 2087727 Opened 1 month ago Closed 18 days ago

[wpt-sync] Sync PR 64315 - Revert "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 64315 into mozilla-central (this bug is closed when the sync is complete).

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

Sharon Yang <yangsharon@igalia.com> wrote:

Revert "Freeze changed scrollbars when sizing position-try candidates"

This reverts commit 9aad139294e1ca4aca0a6cac17dce55e858bd019.

Reason for revert: Error in merge conflict resolution resulted in much of FlagExpectations/surface-embed to be deleted erroneously

Failure Link: no failures yet

Original change's description:

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/c/chromium/src/+/8301035
Reviewed-by: Ian Kilpatrick \<ikilpatrick@chromium.org>
Commit-Queue: Sharon Yang \<yangsharon@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1728568}

Bug: 382679385
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Change-Id: I5a66e7935c3daeae8f3420992dfb1fb40b695c04
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8672519
Commit-Queue: Sharon Yang \<yangsharon@igalia.com>
Auto-Submit: Sharon Yang \<yangsharon@igalia.com>
Reviewed-by: Christian Biesinger \<cbiesinger@chromium.org>
Bot-Commit: rubber-stamper@appspot.gserviceaccount.com \<rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1728610}

Whiteboard: [wptsync downstream] → [wptsync downstream error]

PR 64315 applied with additional changes from upstream: 7f8d49b5a82606efc771f43d10aad5bce5ccbfeb

Whiteboard: [wptsync downstream error] → [wptsync downstream]

The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/58f53f408064 https://hg.mozilla.org/integration/autoland/rev/112a56aba0e4 [wpt PR 64315] - Revert "Freeze changed scrollbars when sizing position-try candidates", a=testonly

Test result changes from PR not available.

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.