fune/testing/web-platform/tests/css/css-overflow/overflow-clip-margin-011.html
Xianzhu Wang c6d0b69eda Bug 1785965 [wpt PR 35527] - Fix cull rect and paint subtree skipping issue with overflow-clip-margin, a=testonly
Automatic update from web-platform-tests
Fix cull rect and paint subtree skipping issue with overflow-clip-margin

This fixes issue with overflow-clip-margin at the following places:
1. CullRectUpdater: we should check OverflowClipRect to see if the
   whole subtree is out of the cull rect.
2. PaintLayerPainter: KnownToClipSubtree() is renamed to
   KnownToClipSubtreeToPaddingBox() and modified to return false when
   there is overflow-clip-margin.

Bug: 1351931
Change-Id: I351ddc44f0f137e8d32173f326d4579ce4c97662
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3840344
Reviewed-by: Scott Violet <sky@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1037133}

--

wpt-commits: 71be4fb02864df44ebd016452a6e080e7f46754c
wpt-pr: 35527
2022-09-04 17:59:15 +00:00

35 lines
875 B
HTML

<!doctype html>
<meta charset="utf-8">
<title>Overflow-clip-margin: child of a small-border-box out-of-view large-clip-margin parent is shown</title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Xianzhu Wang" href="mailto:wangxianzhu@chromium.org">
<link rel="match" href="overflow-clip-margin-011-ref.html">
<style>
.overflow-hidden {
width: 200px;
height: 200px;
overflow: hidden;
}
.parent {
width: 100px;
height: 100px;
position: relative;
top: 500px;
overflow: clip;
overflow-clip-margin: 500px;
z-index: 1;
background: red;
}
.child {
width: 100px;
height: 100px;
position: relative;
top: -500px;
background: green;
}
</style>
<div class="overflow-hidden">
<div class="parent">
<div class="child">
</div>
</div>