2 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
8 transform:translateZ(
0);
13 transform: translateZ(
0);
32 <pre id=
"layerTree"></pre>
33 <div class=
"container">
34 <div id=
"vertical" class=
"content tall"></div>
36 <div class=
"container">
37 <div id=
"horizontal" class=
"content wide"></div>
39 <div class=
"container">
40 <div id=
"both" class=
"content tall wide"></div>
42 <div id=
"corner" class=
"container resizeWidget">
43 <div class=
"content"></div>
46 function finishTest() {
47 document
.getElementById("vertical").classList
.remove("tall"); // topmost div loses a vertical scrollbar
48 document
.getElementById("horizontal").classList
.remove("wide"); // second div loses a horizontal scrollbar
49 document
.getElementById("both").classList
.remove("wide"); // third div loses both
50 document
.getElementById("both").classList
.remove("tall"); // vertical and horizontal scrollbars
51 document
.getElementById("corner").classList
.remove("resizeWidget"); // bottom div loses a resize corner but no scrollbars
52 if (window
.testRunner
) {
53 document
.getElementById("layerTree").innerText
= window
.internals
.layerTreeAsText(document
);
54 testRunner
.notifyDone();
58 if (window
.testRunner
) {
59 testRunner
.dumpAsText();
60 testRunner
.waitUntilDone();
62 runAfterLayoutAndPaint(finishTest
);