Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <style> | |
| 3 #layer { | |
| 4 transform: translateZ(0); | |
| 5 width: 20px; | |
| 6 height: 20px; | |
| 7 } | |
| 8 </style> | |
| 9 <script> | |
| 10 if (window.testRunner) { | |
| 11 window.testRunner.dumpAsText(); | |
| 12 } | |
| 13 | |
| 14 onload = function() { | |
| 15 var output = document.getElementById('output'); | |
| 16 if (window.internals) | |
| 17 document.getElementById('output').innerText += window.internals.laye rTreeAsText(document, internals.LAYER_TREE_INCLUDES_SCROLL_BLOCKS_ON); | |
|
Ian Vollick
2015/01/06 04:13:51
I think you want testRunner.setCustomTextOutput he
Rick Byers
2015/01/08 21:08:11
Cool, thanks. The only downside is now the test d
Ian Vollick
2015/01/09 15:17:33
Yeah, if you do it like the test I agree, but you
| |
| 18 }; | |
| 19 </script> | |
| 20 Verify we get the default scroll-blocks-on mode applied to the viewport, no addi tional layers created (even with an iframe), and no scroll-blocks-on mode applie d to any other layer. | |
| 21 <div id="layer"></div> | |
| 22 <iframe srcdoc="<div style='width: 15px;'></div>"></iframe> | |
| 23 <pre id="output"></pre> | |
| OLD | NEW |