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

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: Revert histograms.xml Created 3 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/testharness.js"></script>
5 <script src="../../../resources/testharnessreport.js"></script>
6 <style>
7 button {
8 color: green;
9 }
10
11 button:disabled {
12 color: red;
13 }
14
15 </style>
16 </head>
17 <body style="color: green">
18 <button inert>The test passes if this is in green.</button>
19 <script>
20 test(function() {
21 button = document.querySelector('button');
22 color = document.defaultView.getComputedStyle(button).getPropertyValue('colo r');
23 assert_equals(color, 'rgb(0, 128, 0)');
24 }, 'Tests that inert elements do not match the :disabled selector.');
25 </script>
26 </body>
27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698