summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-096-ref.html
blob: 5b013f6e1ad3b1c77ee7c865231feb086d7ee590 (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
36
<!doctype HTML>
<html class="reftest-wait">
<meta charset="utf8">
<title>Content Visibility: auto, scroll away and back (Reference)</title>
<link rel="author" title="Rob Buis" href="mailto:rbuis@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility">
<script src="/common/reftest-wait.js"></script>

<style>
.spacer {
  height: 10000px;
}
#child {
  width: 100px;
  height: 100px;
  background: green;
  position: relative
}
#target {
  width: 10px;
  height: 10px;
}

</style>

<div>
  <div id=child></div>
</div>
<div class=spacer></div>
<div id=target></div>

<script>
  requestAnimationFrame(takeScreenshot);
</script>

</html>