OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../resources/testharness.js"></script> | |
3 <script src="../../resources/testharnessreport.js"></script> | |
4 <style> | |
5 @namespace "http://www.w3.org/1999/xhtml"; | |
6 | |
7 #t1:not(.nomatch) { color: green } | |
8 #t1 { color: red } | |
9 </style> | |
10 <div id="t1">This text should be green</div> | |
11 <script> | |
12 test(() => assert_equals(getComputedStyle(t1).color, "rgb(0, 128, 0)"), | |
13 "Selectors inside :not contributes specificity."); | |
14 </script> | |
OLD | NEW |