Closed Bug 1815562 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 38398 - Fix fixed-position visual rect expansion with additional transforms/clips

Categories

(Core :: Web Painting, task, P4)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Xianzhu Wang <wangxianzhu@chromium.org> wrote:

Fix fixed-position visual rect expansion with additional transforms/clips

The previous code fails to expand fixed-position visual rect when
there are non-translation transforms or clips that change on scroll.

This CL

  • Removes the clip condition before expansion for fixed-position;
  • Adjusts state to the scrolling contents space;
  • Applies transforms before expanding fixed-position visual rect;
  • Ignores clips because they may change on scroll.

MapFixedVisualRectInScrollForCompositingOverlap() replaces the
original ExpandFixedVisualRectInScroller(). It's similar to
MapVisualRectAboveScrollForCompositingOverlap() but is in the reversed
direction and ignores clips.

Bug: 1400107
Change-Id: If3d43084227200dca92cdc0f14e741854fc40979

Reviewed-on: https://chromium-review.googlesource.com/4219881
WPT-Export-Revision: cbc96ab5e584d9eddf3a22c1c8a0549953099c40

Component: web-platform-tests → Web Painting
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a558b2049030 [wpt PR 38398] - Fix fixed-position visual rect expansion with additional transforms/clips, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.