OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <style> | |
3 html { | |
4 scroll-blocks-on: start-touch; | |
5 } | |
6 iframe { | |
7 position: absolute; | |
8 height: 15px; /* large enough to prevent scrollbars */ | |
9 width: 100px; | |
10 border: 0; | |
11 } | |
12 #f1 { | |
13 top: 20px; | |
14 } | |
15 #f2 { | |
16 top: 40px; | |
17 } | |
18 #f3 { | |
19 top: 60px; | |
20 } | |
21 #f4 { | |
22 top: 80px; | |
23 } | |
24 </style> | |
25 <iframe id=f1 srcdoc="<style>html { scroll-blocks-on: none; }</style>"></iframe> | |
26 <iframe id=f2 srcdoc="<style>html { scroll-blocks-on: start-touch; }</style>"></
iframe> | |
27 <iframe id=f3 srcdoc="<style></style>"></iframe> | |
28 <iframe id=f4 srcdoc="<style>html { scroll-blocks-on: start-touch scroll-event;
}</style>"></iframe> | |
29 <script> | |
30 onload = function() { | |
31 if (window.testRunner) { | |
32 testRunner.dumpAsText(); | |
33 var output = "Verify that an iframe will be promoted to a composited
layer only when it has additional scroll-blocks-on bits.\n\n"; | |
34 output += internals.layerTreeAsText(document, internals.LAYER_TREE_I
NCLUDES_SCROLL_BLOCKS_ON); | |
35 testRunner.setCustomTextOutput(output); | |
36 } | |
37 }; | |
38 </script> | |
OLD | NEW |