OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html lang=en> | 2 <html lang=en> |
3 <head> | 3 <head> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
5 <style> | 5 <style> |
6 #testid { background-color: red; } | 6 #testid { background-color: red; } |
7 #testID2 { background-color: red; } | 7 #testID2 { background-color: red; } |
8 .testclass { background-color: red; } | 8 .testclass { background-color: red; } |
9 .testClass2 { background-color: red; } | 9 .testClass2 { background-color: red; } |
10 </style> | 10 </style> |
(...skipping 15 matching lines...) Expand all Loading... |
26 <style> | 26 <style> |
27 .TESTclass2 { background-color: green; } | 27 .TESTclass2 { background-color: green; } |
28 </style> | 28 </style> |
29 <script> | 29 <script> |
30 description("Test that elements before inline stylesheets get their style update
d properly"); | 30 description("Test that elements before inline stylesheets get their style update
d properly"); |
31 shouldBe('window.getComputedStyle(document.getElementById("testid")).backgroundC
olor','"rgb(0, 128, 0)"'); | 31 shouldBe('window.getComputedStyle(document.getElementById("testid")).backgroundC
olor','"rgb(0, 128, 0)"'); |
32 shouldBe('window.getComputedStyle(document.getElementsByClassName("testclass")[0
]).backgroundColor','"rgb(0, 128, 0)"'); | 32 shouldBe('window.getComputedStyle(document.getElementsByClassName("testclass")[0
]).backgroundColor','"rgb(0, 128, 0)"'); |
33 shouldBe('window.getComputedStyle(document.getElementById("testID2")).background
Color','"rgb(255, 0, 0)"'); | 33 shouldBe('window.getComputedStyle(document.getElementById("testID2")).background
Color','"rgb(255, 0, 0)"'); |
34 shouldBe('window.getComputedStyle(document.getElementsByClassName("testClass2")[
0]).backgroundColor','"rgb(255, 0, 0)"'); | 34 shouldBe('window.getComputedStyle(document.getElementsByClassName("testClass2")[
0]).backgroundColor','"rgb(255, 0, 0)"'); |
35 </script> | 35 </script> |
36 <script src="../js/resources/js-test-post.js"></script> | |
37 </body> | 36 </body> |
OLD | NEW |