fune/testing/web-platform/tests/css/css-position/position-absolute-under-non-containing-stacking-context-ref.html
Xianzhu Wang 5acb165c16 Bug 1743049 [wpt PR 31752] - Fix absolute-position under non-containing stacking context, a=testonly
Automatic update from web-platform-tests
Fix absolute-position under non-containing stacking context

When a stacking context has non-contained absolute-position descendant,
and the stacking context is forced by its ancestor to update cull rect,
the stacking context needs to propagate the forced cull rect update
flag to descendants because the cull rect of non-contained
absolute-position descendant depends on the contents cull rect of its
container instead of the non-containing stacking context.

Bug: 1273431
Change-Id: I8155df211fd4781c1c97f25302d2ebd22c3e8309
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3302093
Auto-Submit: Xianzhu Wang <wangxianzhu@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#945771}

--

wpt-commits: 7066b521e6f243238590f6242a123a841f22dcc6
wpt-pr: 31752
2021-11-30 16:16:24 +00:00

9 lines
278 B
HTML

<!DOCTYPE html>
<div id="scroller" style="width: 200px; height: 200px; overflow: auto">
<div style="height: 0; opacity: 0.5; margin: 250px">
<div style="width: 100px; height: 100px; background: green"></div>
</div>
</div>
<script>
scroller.scrollTo(200, 200);
</script>