2 <script src=
"../../../resources/js-test.js"></script>
5 .match+div div+div { color: green; }
11 <div id=
"green"></div>
21 if (window
.testRunner
)
22 testRunner
.dumpAsText();
24 description("Check that we don't do unnecessary style recalcs for sibling trees.");
27 internals
.updateStyleAndReturnAffectedElementCount();
29 document
.getElementById("top").className
= "match";
32 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "4");
34 shouldBe("getComputedStyle(document.getElementById('green'), null).color", "'rgb(0, 128, 0)'");
36 successfullyParsed
= true;