summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-toggle/toggle-visibility-z-ordering-002.tentative.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-toggle/toggle-visibility-z-ordering-002.tentative.html')
-rw-r--r--testing/web-platform/tests/css/css-toggle/toggle-visibility-z-ordering-002.tentative.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-toggle/toggle-visibility-z-ordering-002.tentative.html b/testing/web-platform/tests/css/css-toggle/toggle-visibility-z-ordering-002.tentative.html
new file mode 100644
index 0000000000..cc1ecb2a9c
--- /dev/null
+++ b/testing/web-platform/tests/css/css-toggle/toggle-visibility-z-ordering-002.tentative.html
@@ -0,0 +1,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>