Files
firefox/testing/web-platform/tests/css/css-position/position-change.html
T
Philip Rogers 522ddabe93 Bug 1742846 [wpt PR 31734] - Invalidate paint when CompositingContainer changes, a=testonly
Automatic update from web-platform-tests
Invalidate paint when CompositingContainer changes

PaintLayer::CompositingContainer may change when stacking changes. We
mark the previous compositing container for repaint in
|LayoutBoxModelObject::StyleWillChange| but also need to mark the new
compositing container chain for repaint.

Bug: 1271871
Change-Id: Ief05ea5c26ae27ebe2918db293ad8e17a5851a9a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3300510
Auto-Submit: Philip Rogers <[email protected]>
Reviewed-by: Xianzhu Wang <[email protected]>
Commit-Queue: Xianzhu Wang <[email protected]>
Cr-Commit-Position: refs/heads/main@{#945205}

--

wpt-commits: b6e9ffd765b9e0b4840b45a46f9ddbcf1aecf7fe
wpt-pr: 31734
2021-11-29 19:40:30 +00:00

26 lines
924 B
HTML

<!doctype HTML>
<html class="reftest-wait">
<title>CSS Test: Test for re-paint after position change</title>
<link rel="author" title="Philip Rogers" href="mailto:[email protected]" />
<link rel="help" href="https://www.w3.org/TR/CSS2/zindex.html">
<link rel="match" href="position-change-ref.html">
<script src="/common/reftest-wait.js"></script>
<div style="position: relative; background: red; width: 100px; height: 100px; overflow: hidden;">
<div id="target" style="overflow-y: scroll; width: 400px; height: 400px; position: relative;">
<div style="height: 100px; width: 100px; background: green;"></div>
<!-- forces scrolling -->
<div style="height: 700px;"></div>
</div>
</div>
<script>
onload = function() {
requestAnimationFrame(() => requestAnimationFrame(() => {
target.style.position = "";
takeScreenshot();
}));
}
</script>
</html