OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../resources/js-test.js"></script> | |
3 <style> | |
4 #p { color: red !important; } | |
5 </style> | |
6 <p id="p" style="color: green !important;">This text should be green.</p> | |
7 <script> | |
8 description("Style attribute !important wins over stylesheet !important"); | |
9 | |
10 shouldBeEqualToString("getComputedStyle(p).color", "rgb(0, 128, 0)"); | |
11 </script> | |
OLD | NEW |