| Index: LayoutTests/compositing/layer-creation/scroll-blocks-on-iframe.html
|
| diff --git a/LayoutTests/compositing/layer-creation/scroll-blocks-on-iframe.html b/LayoutTests/compositing/layer-creation/scroll-blocks-on-iframe.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5d6d9e5d487a2cc40a04bf109f3591722fd16e6a
|
| --- /dev/null
|
| +++ b/LayoutTests/compositing/layer-creation/scroll-blocks-on-iframe.html
|
| @@ -0,0 +1,35 @@
|
| +<!DOCTYPE html>
|
| +<style>
|
| +html {
|
| + scroll-blocks-on: start-touch;
|
| +}
|
| +#f1 {
|
| + height: 1px;
|
| +}
|
| +#f2 {
|
| + height: 2px;
|
| +}
|
| +#f3 {
|
| + height: 3px;
|
| +}
|
| +#f4 {
|
| + height: 4px;
|
| +}
|
| +</style>
|
| +<script>
|
| + if (window.testRunner) {
|
| + window.testRunner.dumpAsText();
|
| + }
|
| +
|
| + onload = function() {
|
| + var output = document.getElementById('output');
|
| + if (window.internals)
|
| + document.getElementById('output').innerText += window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_SCROLL_BLOCKS_ON);
|
| + };
|
| +</script>
|
| +Verify that an iframe will be promoted to a composited layer only when it has additional scroll-blocks-on bits.
|
| +<iframe id=f1 srcdoc="<style>html { scroll-blocks-on: none; }</style>"></iframe>
|
| +<iframe id=f2 srcdoc="<style>html { scroll-blocks-on: start-touch; }</style>"></iframe>
|
| +<iframe id=f3 srcdoc="<style></style>"></iframe>
|
| +<iframe id=f4 srcdoc="<style>html { scroll-blocks-on: start-touch scroll-event; }</style>"></iframe>
|
| +<pre id="output"></pre>
|
|
|