| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/run-after-display.js"></script> |
| 2 <style> | 3 <style> |
| 3 .container { | 4 .container { |
| 4 width: 100px; | 5 width: 100px; |
| 5 height:100px; | 6 height:100px; |
| 6 position:absolute; | 7 position:absolute; |
| 7 -webkit-transform:translateZ(0); | 8 -webkit-transform:translateZ(0); |
| 8 overflow:auto; | 9 overflow:auto; |
| 9 } | 10 } |
| 10 | 11 |
| 11 .content { | 12 .content { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 42 <div class="content"></div> | 43 <div class="content"></div> |
| 43 </div> | 44 </div> |
| 44 <script> | 45 <script> |
| 45 function finishTest() { | 46 function finishTest() { |
| 46 document.getElementById("vertical").classList.remove("tall"); // topmost div
loses a vertical scrollbar | 47 document.getElementById("vertical").classList.remove("tall"); // topmost div
loses a vertical scrollbar |
| 47 document.getElementById("horizontal").classList.remove("wide"); // second di
v loses a horizontal scrollbar | 48 document.getElementById("horizontal").classList.remove("wide"); // second di
v loses a horizontal scrollbar |
| 48 document.getElementById("both").classList.remove("wide"); // third div loses
both | 49 document.getElementById("both").classList.remove("wide"); // third div loses
both |
| 49 document.getElementById("both").classList.remove("tall"); // vertical and ho
rizontal scrollbars | 50 document.getElementById("both").classList.remove("tall"); // vertical and ho
rizontal scrollbars |
| 50 document.getElementById("corner").classList.remove("resizeWidget"); // botto
m div loses a resize corner but no scrollbars | 51 document.getElementById("corner").classList.remove("resizeWidget"); // botto
m div loses a resize corner but no scrollbars |
| 51 if (window.testRunner) { | 52 if (window.testRunner) { |
| 52 testRunner.display(); // Ensure compositor tree is up to date. | |
| 53 document.getElementById("layerTree").innerText = window.internals.layerT
reeAsText(document); | 53 document.getElementById("layerTree").innerText = window.internals.layerT
reeAsText(document); |
| 54 testRunner.notifyDone(); |
| 54 } | 55 } |
| 55 } | 56 } |
| 56 | 57 |
| 57 if (window.testRunner) { | 58 if (window.testRunner) { |
| 58 testRunner.dumpAsText(); | 59 testRunner.dumpAsText(); |
| 59 testRunner.display(); // Force compositor state to be updated before the con
tainer needs any overflow controls | 60 testRunner.waitUntilDone(); |
| 60 finishTest(); | 61 } |
| 61 } else | 62 runAfterDisplay(finishTest); |
| 62 window.setTimeout(finishTest, 0); | |
| 63 </script> | 63 </script> |
| OLD | NEW |