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

Unified Diff: LayoutTests/dialog/backdrop-in-flow.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-in-flow.html
diff --git a/LayoutTests/dialog/backdrop-in-flow.html b/LayoutTests/dialog/backdrop-in-flow.html
new file mode 100644
index 0000000000000000000000000000000000000000..5e8e25f60eae1b7d3471a941c82b8f733cd4340b
--- /dev/null
+++ b/LayoutTests/dialog/backdrop-in-flow.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<style>
+dialog {
+ visibility: hidden;
+}
+
+dialog::backdrop {
+ height: 100px;
+ width: 50px;
+}
+
+#left::backdrop {
+ position: static;
+ top: 100px;
+ left: 100px;
+ background: green;
+}
+
+#right::backdrop {
+ position: relative;
+ background: green;
+ top: 100px;
+ left: 150px;
+}
+</style>
+<body>
+Test that position 'static' or 'relative' for ::backdrop computes to 'absolute'.
+The test passes if there is a single green box.
+<dialog id="left"></dialog>
+<dialog id="right"></dialog>
+</div>
+<script>
+document.querySelector('#left').showModal();
+document.querySelector('#right').showModal();
+</script>
+</body>
« no previous file with comments | « LayoutTests/dialog/backdrop-does-not-inherit-expected.html ('k') | LayoutTests/dialog/backdrop-in-flow-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698