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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/inert/inert-does-not-match-disabled-selector.html

Issue 2088453002: Implement the inert attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up some tests Created 4 years, 6 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/fast/dom/inert/inert-does-not-match-disabled-selector.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/inert-does-not-match-disabled-selector.html b/third_party/WebKit/LayoutTests/fast/dom/inert/inert-does-not-match-disabled-selector.html
similarity index 65%
copy from third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/inert-does-not-match-disabled-selector.html
copy to third_party/WebKit/LayoutTests/fast/dom/inert/inert-does-not-match-disabled-selector.html
index fd22bfa9f34bad67fad140fda91b606b16bba76f..9fb9800f7c3a1e209bf2d30d18647677d4f1879d 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/inert-does-not-match-disabled-selector.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/inert/inert-does-not-match-disabled-selector.html
@@ -11,19 +11,13 @@ button:disabled {
color: red;
}
-.trigger-style-recalc {
- /* No change, we just need a new style recalculation. */
-}
</style>
</head>
<body style="color: green">
-<button>The test passes if this is in green.</button>
-<dialog></dialog>
+<button inert>The test passes if this is in green.</button>
<script>
description('Tests that inert elements do not match the :disabled selector.');
-document.querySelector('dialog').showModal();
button = document.querySelector('button');
-button.classList.add('trigger-style-recalc');
color = document.defaultView.getComputedStyle(button).getPropertyValue('color');
shouldBe('color', "'rgb(0, 128, 0)'");
</script>

Powered by Google App Engine
This is Rietveld 408576698