Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: LayoutTests/dialog/backdrop-does-not-inherit.html

Issue 17654008: Implement the ::backdrop pseudo-element for modal <dialog>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: use element directly Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/dialog/backdrop-does-not-inherit.html
diff --git a/LayoutTests/dialog/backdrop-does-not-inherit.html b/LayoutTests/dialog/backdrop-does-not-inherit.html
new file mode 100644
index 0000000000000000000000000000000000000000..725c448d0b4ed327e4767548ffd341636fd98c46
--- /dev/null
+++ b/LayoutTests/dialog/backdrop-does-not-inherit.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<style>
+dialog {
+ visibility: inherit;
+ background: red;
+}
+
+dialog::backdrop {
+ position: absolute;
+ top: 100px;
+ left: 100px;
+ height: 100px;
+ width: 100px;
+ visibility: inherit;
+ background: green;
+}
+</style>
+<body>
+Test that ::backdrop does not inherit from anything. The test passes if there is
+a green box and no red.
+<div style="visibility: hidden">
+ <dialog></dialog>
+</div>
+<script>
+document.querySelector('dialog').showModal();
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698