3 <script src=
"../../resources/js-test.js"></script>
5 #testid { background-color: red; }
6 #testID2 { background-color: red; }
7 .testclass { background-color: red; }
8 .testClass2 { background-color: red; }
12 <div id=testid
>id test
</div>
14 #testid { background-color: green }
16 <div class=testclass
>class test
</div>
18 .testclass { background-color: green; }
20 <div id=testID2
>case insensitive id test
</div>
22 #TESTid2 { background-color: green }
24 <div class=testClass2
>case insensitive class test
</div>
26 .TESTclass2 { background-color: green; }
29 description("Test that elements before inline stylesheets get their style updated properly");
30 shouldBe('window.getComputedStyle(document.getElementById("testid")).backgroundColor','"rgb(0, 128, 0)"');
31 shouldBe('window.getComputedStyle(document.getElementsByClassName("testclass")[0]).backgroundColor','"rgb(0, 128, 0)"');
32 shouldBe('window.getComputedStyle(document.getElementById("testID2")).backgroundColor','"rgb(0, 128, 0)"');
33 shouldBe('window.getComputedStyle(document.getElementsByClassName("testClass2")[0]).backgroundColor','"rgb(0, 128, 0)"');