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
18 lines
614 B
HTML
18 lines
614 B
HTML
<!doctype html>
|
|
<meta charset="utf-8">
|
|
<title>Verifies overflow-clip-margin doesn't impact paint effects</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-006-ref.html">
|
|
<style>
|
|
.parent {
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: green;
|
|
contain: paint;
|
|
overflow-clip-margin: 1px;
|
|
box-shadow: 20px 20px 5px red;
|
|
}
|
|
</style>
|
|
<p>You should see a green box with a red box shadow.
|
|
<div class="parent"></div>
|