summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-overflow/overflow-clip-margin-008.html
blob: fabe669a49c69319c9fc689cc9f22af6b6fe41f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!doctype html>
<html class="reftest">
<meta charset="utf-8">
<title>Overflow-clip-margin has no effect with overflow:scroll and paint containment </title>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin">
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="match" href="overflow-clip-margin-008-ref.html">
<style>
.container {
  width: 100px;
  height: 100px;
  overflow-clip-margin: 20px;
  contain: paint;
  overflow: scroll;
}
.child {
  width: 200px;
  height: 200px;
  background: lightblue;
}
</style>
<div class=container>
  <div class=child></div>
</div>