2 <script src=
"../../resources/js-test.js"></script>
7 <span style=
"display:none"></span>
8 <div style=
"float:left;"></div>
12 // Force style recalc and layout.
13 document
.body
.offsetTop
;
16 shouldBe("window.internals.needsLayoutCount()", "0", true);
18 var parent
= document
.getElementById("parent");
20 // Changing the class attribute here will cause a style recalc with a resulting
21 // reattach, but it should not cause a relayout.
22 parent
.className
= "a";
24 if (window
.internals
) {
25 shouldBe("window.internals.updateStyleAndReturnAffectedElementCount()", "2", true);
26 shouldBe("window.internals.needsLayoutCount()", "0", true);