forked from mirrors/gecko-dev
Automatic update from web-platform-tests blink: makes contain: paint honor overflow-clip-margin This gives the same logic as that of 'overflow: clip.' BUG=1159155 TEST=overflow-clip-margin-00[456].html Change-Id: I1396fad5fbf4464daee8d021191797ba7d01856c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2596828 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org> Commit-Queue: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#841477} -- wpt-commits: 83fec7609709b94b8def0b17dbf0f067045c9655 wpt-pr: 26949
32 lines
852 B
HTML
32 lines
852 B
HTML
<!doctype html>
|
|
<meta charset="utf-8">
|
|
<title>Verifies overflow-clip-margin extends outside bounds with contain: paint</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">
|
|
<style>
|
|
.container {
|
|
display: flex;
|
|
}
|
|
.parent {
|
|
position: relative;
|
|
top: -10px;
|
|
left: -10px;
|
|
width: 120px;
|
|
height: 120px;
|
|
flex: none;
|
|
background-color: green;
|
|
}
|
|
.spacer {
|
|
flex: none;
|
|
height: 100px;
|
|
width: 100px;
|
|
}
|
|
|
|
</style>
|
|
<p>You should see two green squares touching each other. The one on the
|
|
right should be slightly larger.</p>
|
|
<div class="spacer"></div>
|
|
<div class="container">
|
|
<div class="spacer" style="background-color: green"></div>
|
|
<div class="parent"></div>
|
|
</div>
|