summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/content-visibility/content-visibility-078-ref.html
blob: 1aed12f92e08bc6fc68e8b17db7ed34301afb99f (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
<!doctype HTML>
<html>
<meta charset="utf8">
<title>CSS Content Visibility: positioned movement update moves hidden 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>
#target {
  top: 50px;
  left: 100px;
  position: absolute;
  width: 100px;
  height: 100px;
  background: blue;
}
#t2 {
  top: 150px;
  left: 100px;
  position: absolute;
  width: 100px;
  height: 100px;
  background: orange;
}
</style>

<p>Test passes if the blue and orange boxes are vertically aligned with each other.
<div id=target></div>
<div id=t2></div>