summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-overflow/overflow-clip-margin-009.html
blob: 6ba9a5a3e6073567ff47778030a9fd621fb65049 (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
25
26
27
28
<!doctype html>
<html class="reftest">
<meta charset="utf-8">
<title>Overflow-clip-margin can be inherited even if it has no effect on specified element</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-009-ref.html">
<style>
.prop {
  overflow-clip-margin: 20px;
}
.container {
  width: 100px;
  height: 100px;
  overflow-clip-margin: inherit;
  overflow: clip;
}
.child {
  width: 200px;
  height: 200px;
  background: lightblue;
}
</style>
<div class=prop>
  <div class=container>
    <div class=child></div>
  </div>
</div>