servo/tests/wpt/web-platform-tests/css/css-toggle/toggle-visibility-z-ordering-002.tentative.html

44 lines
874 B
HTML

<!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>