| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- there should be four green squares and no visible red --> | 2 <!-- there should be four green squares and no visible red --> |
| 3 <script src="../../resources/run-after-display.js"></script> |
| 3 <style> | 4 <style> |
| 4 .container { | 5 .container { |
| 5 width: 100px; | 6 width: 100px; |
| 6 height:100px; | 7 height:100px; |
| 7 background-color: green; | 8 background-color: green; |
| 8 position:absolute; | 9 position:absolute; |
| 9 -webkit-transform:translateZ(0); | 10 -webkit-transform:translateZ(0); |
| 10 overflow:auto; | 11 overflow:auto; |
| 11 } | 12 } |
| 12 | 13 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 <div id="corner" class="container resizeWidget" style="left: 450px"> | 51 <div id="corner" class="container resizeWidget" style="left: 450px"> |
| 51 <div class="content"></div> | 52 <div class="content"></div> |
| 52 </div> | 53 </div> |
| 53 <script> | 54 <script> |
| 54 function finishTest() { | 55 function finishTest() { |
| 55 document.getElementById("vertical").classList.remove("tall"); // topmost div
loses a vertical scrollbar | 56 document.getElementById("vertical").classList.remove("tall"); // topmost div
loses a vertical scrollbar |
| 56 document.getElementById("horizontal").classList.remove("wide"); // second di
v loses a horizontal scrollbar | 57 document.getElementById("horizontal").classList.remove("wide"); // second di
v loses a horizontal scrollbar |
| 57 document.getElementById("both").classList.remove("wide"); // third div loses
both | 58 document.getElementById("both").classList.remove("wide"); // third div loses
both |
| 58 document.getElementById("both").classList.remove("tall"); // vertical and ho
rizontal scrollbars | 59 document.getElementById("both").classList.remove("tall"); // vertical and ho
rizontal scrollbars |
| 59 document.getElementById("corner").classList.remove("resizeWidget"); // botto
m div loses a resize corner but no scrollbars | 60 document.getElementById("corner").classList.remove("resizeWidget"); // botto
m div loses a resize corner but no scrollbars |
| 61 if (window.testRunner) |
| 62 testRunner.notifyDone(); |
| 60 } | 63 } |
| 61 | 64 |
| 62 if (window.testRunner) { | 65 if (window.testRunner) { |
| 63 testRunner.dumpAsTextWithPixelResults(); | 66 testRunner.dumpAsTextWithPixelResults(); |
| 64 testRunner.display(); // Paint once with all overflow controls visible. | 67 testRunner.waitUntilDone(); |
| 65 finishTest(); | 68 } |
| 66 } else | 69 |
| 67 window.setTimeout(finishTest, 0); | 70 runAfterDisplay(finishTest); |
| 68 </script> | 71 </script> |
| OLD | NEW |