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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <style> 5 <style>
6 button { 6 button {
7 color: green; 7 color: green;
8 } 8 }
9 9
10 button:disabled { 10 button:disabled {
11 color: red; 11 color: red;
12 } 12 }
13 13
14 .trigger-style-recalc {
15 /* No change, we just need a new style recalculation. */
16 }
17 </style> 14 </style>
18 </head> 15 </head>
19 <body style="color: green"> 16 <body style="color: green">
20 <button>The test passes if this is in green.</button> 17 <button inert>The test passes if this is in green.</button>
21 <dialog></dialog>
22 <script> 18 <script>
23 description('Tests that inert elements do not match the :disabled selector.'); 19 description('Tests that inert elements do not match the :disabled selector.');
24 document.querySelector('dialog').showModal();
25 button = document.querySelector('button'); 20 button = document.querySelector('button');
26 button.classList.add('trigger-style-recalc');
27 color = document.defaultView.getComputedStyle(button).getPropertyValue('color'); 21 color = document.defaultView.getComputedStyle(button).getPropertyValue('color');
28 shouldBe('color', "'rgb(0, 128, 0)'"); 22 shouldBe('color', "'rgb(0, 128, 0)'");
29 </script> 23 </script>
30 </body> 24 </body>
31 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698