summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-074-ref.html
blob: 82a6c263fa906d70f76dc78fcd6d7b6c3b461b86 (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
29
30
31
32
33
34
35
<!doctype HTML>
<html>
<meta charset="utf8">
<title>CSS Content Visibility: toggling auto with composited descedant (reference)</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility">

<style>
#a { will-change: transform; }
#b { height: 15000px; }
#c {
  width: 800px;
  height: 600px;
}
#d {
  will-change: transform;
  top: 0px;
  width: 500px;
  height: 500px;
  background: green;
}
.contain {
  contain: layout style paint;
}

</style>

<div id="a">
</div>
<div id="b">
  <div id="c" class=contain>
    <div id="d"></div>
    </div>
  </div>
</div>