2 <script src=
"../../../resources/js-test.js"></script>
4 #t1 div + .test { background-color: green }
5 #t2 div ~ .test { background-color: green }
6 #t3 :not(.nomatch) .test { background-color: green }
38 description("Class selectors in rightmost compound selector should cause LocalStyleChange even if we cannot use invalidation sets.");
41 [ "#t1 > div + div", 1 ],
42 [ "#t2 > div ~ div", 1 ],
43 [ "#t3 > div > div", 1 ]
46 var green
= 'rgb(0, 128, 0)';
48 for (var i
=0; i
<tests
.length
; i
++) {
50 var elm
= document
.querySelector(test
[0]);
51 document
.body
.offsetLeft
;
52 elm
.className
= "test";
54 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "" + test
[1]);
55 shouldBe("getComputedStyle(elm, null).backgroundColor", "green");