summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/crashtests/contain-nested-crash-001.html
blob: 063563c2609a77ba4937aa66ed195e92c6375b21 (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>
<link rel="help" href="https://drafts.csswg.org/css-contain/#contain-property">
<link rel="help" href="https://crbug.com/1214198">
<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
<style>
.contain {
  contain: strict;
  display: block;
  width: 100px;
  height: 100px;
}
</style>
<body>
  <div id="outer" class="contain">
    <div>
      <div id="inner" class="contain"></div>
    </div>
  </div>
<script>
  document.body.offsetTop;
  inner.appendChild(document.createTextNode('inner-child'));
  outer.appendChild(document.createTextNode('outer-child'));
</script>
</body>