summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-toggle/toggle-visibility-z-ordering-001.tentative.html
blob: 50f5d35f19296bcc2d47a6d8490d0d3ce0549466 (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
37
38
39
40
<!DOCTYPE HTML>
<meta charset="UTF-8">
<title>CSS Toggles: toggle-visibility</title>
<link rel="author" title="L. David Baron" href="https://dbaron.org/">
<link rel="author" title="Google" href="http://www.google.com/">
<link rel="help" href="https://tabatkins.github.io/css-toggle/#toggle-visibility-property">
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<style>

body {
  toggle-root: inactive-toggle 1 at 0;
}

#container {
  toggle-visibility: toggle inactive-toggle;
  background: green;
  width: 100px;
  height: 100px;
}

#child, #sibling {
  height: 100px;
  width: 100px;
  background: red;
}

#sibling {
  margin-top: -100px;
}

</style>

<body>

<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>

<div id="container">
  <div id="child"></div>
</div>
<div id="sibling"></div>