2 <script src=
"../../../resources/js-test.js"></script>
4 .b .c { background-color: pink }
5 .a * { background-color: green }
16 description("Check that all children of inner are recalculated.");
18 var transparent
= "rgba(0, 0, 0, 0)";
19 var green
= "rgb(0, 128, 0)";
21 var inner
= document
.getElementById("inner");
22 var outer
= document
.getElementById("outer");
24 var innerDivs
= inner
.querySelectorAll("div");
26 for (var i
=0; i
< innerDivs
.length
; i
++)
27 shouldBe("getComputedStyle(innerDivs[i], null).backgroundColor", "transparent");
29 document
.body
.offsetTop
; // Force style recalc.
31 outer
.className
= "b";
32 inner
.className
= "a";
35 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "4");
37 for (var i
=0; i
< innerDivs
.length
; i
++)
38 shouldBe("getComputedStyle(innerDivs[i], null).backgroundColor", "green");