2 <!-- there should be four green squares and no visible red -->
3 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
8 background-color: green;
10 transform:translateZ(
0);
15 background-color: red;
19 background-color: red;
23 transform: translateZ(
0);
42 <div class=
"container">
43 <div id=
"vertical" class=
"content tall"></div>
45 <div class=
"container" style=
"left: 150px">
46 <div id=
"horizontal" class=
"content wide"></div>
48 <div class=
"container" style=
"left: 300px">
49 <div id=
"both" class=
"content tall wide"></div>
51 <div id=
"corner" class=
"container resizeWidget" style=
"left: 450px">
52 <div class=
"content"></div>
55 function finishTest() {
56 document
.getElementById("vertical").classList
.remove("tall"); // topmost div loses a vertical scrollbar
57 document
.getElementById("horizontal").classList
.remove("wide"); // second div loses a horizontal scrollbar
58 document
.getElementById("both").classList
.remove("wide"); // third div loses both
59 document
.getElementById("both").classList
.remove("tall"); // vertical and horizontal scrollbars
60 document
.getElementById("corner").classList
.remove("resizeWidget"); // bottom div loses a resize corner but no scrollbars
61 if (window
.testRunner
)
62 testRunner
.notifyDone();
65 if (window
.testRunner
) {
66 testRunner
.dumpAsTextWithPixelResults();
67 testRunner
.waitUntilDone();
70 runAfterLayoutAndPaint(finishTest
);