wpt / css / css-overflow / overflow-clip-margin-006.html

Status: PASS | Duration: 12ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-overflow/overflow-clip-margin-006.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 blue;
  }
  .fail {
      width: 20px;
      height: 20px;
      background-color: red;
      position: relative;
      top: -15px;
      left: 85px;
      z-index: -1;
  }
</style>
<p>You should see a green box with a blue box shadow.
<div class="parent"></div>
<div class="fail"></div>

/css/css-overflow/overflow-clip-margin-006-ref.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">
<style>
  .parent {
      width: 100px;
      height: 100px;
      background-color: green;
      box-shadow: 20px 20px 5px blue;
  }
</style>
<p>You should see a green box with a blue box shadow.
<div class="parent"></div>