summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-021-ref.html
blob: be71e10eb301f3dcfa1c5650677e6d520664454d (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
<!doctype HTML>
<html>
<meta charset="utf8">
<title>Content Visibility: hidden image (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>
div {
  background: blue;
  color: white;
}
.myimg {
  display: inline-block;
  width: 400px;
  height: 200px;
  background: lightblue;
  border: 1px solid black;
}
</style>

<div>Test passes if there are two identical light blue boxes below and no image in them.</div>
<div class="myimg"></div>
<div class="myimg"></div>
<div>Test passes if there are two identical light blue boxes above and no image in them.</div>