Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src="../../../resources/run-after-layout-and-paint.js"></script> | |
| 3 <script> | |
| 4 if (window.internals) { | |
| 5 internals.settings.setPreferCompositingToLCDTextEnabled(true); | |
| 6 internals.settings.setMockScrollbarsEnabled(true); | |
| 7 internals.settings.setOverlayScrollbarsEnabled(true); | |
| 8 } | |
| 9 | |
| 10 if (window.testRunner) | |
| 11 testRunner.waitUntilDone(); | |
| 12 | |
| 13 runAfterLayoutAndPaint(function() { | |
| 14 document.getElementById('content').style.height = '250px'; | |
| 15 runAfterLayoutAndPaint(function() { | |
| 16 document.getElementById('content').style.height = '150px'; | |
| 17 if (window.testRunner) | |
|
wkorman
2016/02/02 22:02:35
I think you can just pass true as a second param t
Xianzhu
2016/02/02 22:47:12
Done.
Actually there was a syntax error here. Add
| |
| 18 testRunner.notifyDone(); | |
| 19 }; | |
| 20 }); | |
| 21 </script> | |
| 22 | |
| 23 Tests a float changes using composited scrolling. Passes if the green square is always visible.<p> | |
| 24 To test manually, use command line switches --enable-prefer-compositing-to-lcd-t ext --enable-overlay-scrollbar | |
| 25 <div style="height: 200px"> | |
| 26 <div style="float: left; width: 300px; height: 100%; overflow: auto; backgroun d-color: green"> | |
| 27 <div id="content" style="height: 150px"></div> | |
| 28 </div> | |
| 29 </div> | |
| OLD | NEW |