blob: cc1ecb2a9cf7bab8edfd1ec018c6bdbb765288ff (
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
41
42
43
44
|
<!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: active-toggle 1 at 1;
}
#container {
toggle-visibility: toggle active-toggle;
background: red;
width: 100px;
height: 100px;
}
#child, #sibling {
height: 100px;
width: 100px;
}
#child {
background: green;
}
#sibling {
background: red;
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>
|