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