summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/content-visibility/spacer-and-container-ref.html
blob: a2d5f144719b99855f4f0184d28e03390ab5bbb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!doctype HTML>
<html>
<meta charset="utf8">
<title>Content Visibility: spacer and a container (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>
.spacer {
  width: 150px;
  height: 3000px;
  background: lightblue;
}
#container {
  contain: style layout;
  width: 150px;
  height: 150px;
}
</style>

<div class="spacer">Test passes if there is no red.</div>
<div id="container"></div>
</html>