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

Unified Diff: third_party/WebKit/LayoutTests/dialog/backdrop-descendant-selector.html

Issue 2671603003: Move DIALOG element tests to html/dialog/. (Closed)
Patch Set: Created 3 years, 11 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: third_party/WebKit/LayoutTests/dialog/backdrop-descendant-selector.html
diff --git a/third_party/WebKit/LayoutTests/dialog/backdrop-descendant-selector.html b/third_party/WebKit/LayoutTests/dialog/backdrop-descendant-selector.html
deleted file mode 100644
index 06a0347d4500ac3222abc7fe5036c83e91be8916..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/dialog/backdrop-descendant-selector.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<style>
-dialog {
- visibility: hidden;
-}
-
-::backdrop {
- position: absolute;
- height: 100px;
- width: 100px;
- background: red;
-}
-
-/* This shouldn't be matched, dialog is not the parent of ::backdrop.
- * It is given high specificity so we actually test something.
- */
-#dialog-parent > #dialog > ::backdrop,
-#dialog-parent > #dialog ::backdrop {
- background: red;
-}
-
-#dialog-parent > ::backdrop {
- top: 100px;
- left: 100px;
- background: green;
-}
-
-#backdrop-ancestor ::backdrop {
- top: 100px;
- left: 300px;
- background: green;
-}
-</style>
-</head>
-<body>
-Test ::backdrop used in descendant selectors. The test passes if there are two green boxes and no red.
-
-<div id="dialog-parent">
- <dialog id="dialog"></dialog>
-</div>
-<div id="backdrop-ancestor">
- <p><span><dialog></dialog></span></p>
-</div>
-<script>
-var dialogs = document.querySelectorAll('dialog');
-for (var i = 0; i < dialogs.length; ++i)
- dialogs[i].showModal();
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698