OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 html { |
| 4 scroll-blocks-on: start-touch; |
| 5 } |
| 6 #f1 { |
| 7 height: 1px; |
| 8 } |
| 9 #f2 { |
| 10 height: 2px; |
| 11 } |
| 12 #f3 { |
| 13 height: 3px; |
| 14 } |
| 15 #f4 { |
| 16 height: 4px; |
| 17 } |
| 18 </style> |
| 19 <script> |
| 20 if (window.testRunner) { |
| 21 window.testRunner.dumpAsText(); |
| 22 } |
| 23 |
| 24 onload = function() { |
| 25 var output = document.getElementById('output'); |
| 26 if (window.internals) |
| 27 document.getElementById('output').innerText += window.internals.laye
rTreeAsText(document, internals.LAYER_TREE_INCLUDES_SCROLL_BLOCKS_ON); |
| 28 }; |
| 29 </script> |
| 30 Verify that an iframe will be promoted to a composited layer only when it has ad
ditional scroll-blocks-on bits. |
| 31 <iframe id=f1 srcdoc="<style>html { scroll-blocks-on: none; }</style>"></iframe> |
| 32 <iframe id=f2 srcdoc="<style>html { scroll-blocks-on: start-touch; }</style>"></
iframe> |
| 33 <iframe id=f3 srcdoc="<style></style>"></iframe> |
| 34 <iframe id=f4 srcdoc="<style>html { scroll-blocks-on: start-touch scroll-event;
}</style>"></iframe> |
| 35 <pre id="output"></pre> |
OLD | NEW |