forked from mirrors/gecko-dev
Automatic update from web-platform-tests blink: makes display lock use overflow-clip-rect when appropriate Specifically, if the box has non visible overflow and an overflow-clip-margin. Without this the overflow from contain:paint doesn't take into the account the overflow-clip-margin, and we may end up not painting when we should. BUG=1157843 TEST=third_party/blink/web_tests/external/wpt/css/css-overflow/overflow-clip-margin-007.html Change-Id: Iba11a683f8cc1eb595ef26984c0dce38133fc760 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2626027 Reviewed-by: Stefan Zager <szager@chromium.org> Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by: vmpstr <vmpstr@chromium.org> Commit-Queue: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#844846} -- wpt-commits: 79d2debce531d115566192dccf70f5d8fb9ced53 wpt-pr: 27159
34 lines
827 B
HTML
34 lines
827 B
HTML
<!doctype html>
|
|
<html class="reftest">
|
|
<meta charset="utf-8">
|
|
<title>Overflow-clip-margin: is shown with content-visibility: auto</title>
|
|
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
|
|
<link rel="author" title="Scott Violet" href="mailto:sky@chromium.org">
|
|
<link rel="match" href="overflow-clip-margin-007-ref.html">
|
|
<style>
|
|
body {
|
|
height: 15000px;
|
|
}
|
|
.auto {
|
|
content-visibility: auto;
|
|
width: 100px;
|
|
height: 100px;
|
|
overflow-clip-margin: 10000px;
|
|
background: lightblue;
|
|
}
|
|
.big {
|
|
width: 10px;
|
|
height: 20000px;
|
|
position: relative;
|
|
top: -10000px;
|
|
background: green;
|
|
}
|
|
</style>
|
|
<div class=auto>
|
|
<div class=big></div>
|
|
</div>
|
|
<script>
|
|
onload = function() {
|
|
document.documentElement.scrollTop = window.innerHeight * 3;
|
|
}
|
|
</script>
|