2 <script src=
"../../resources/js-test.js"></script>
4 #test :nth-child(odd) { color: green; }
5 #test :not(.a) { color: rgb(
200,
200,
200); }
18 description("Not necessary to recalc sibling styles for :nth-child when no mutations have happened.");
20 document
.body
.offsetTop
;
22 var testElm
= document
.querySelector("#test div");
23 testElm
.className
= "a";
26 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
28 var green
= "rgb(0, 128, 0)";
29 shouldBe("getComputedStyle(testElm, null).color", "green");