| Index: LayoutTests/compositing/layer-creation/scroll-blocks-on-script.html
|
| diff --git a/LayoutTests/compositing/layer-creation/scroll-blocks-on-script.html b/LayoutTests/compositing/layer-creation/scroll-blocks-on-script.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8f1103dce5b13764f8f20d42553a3666983628bf
|
| --- /dev/null
|
| +++ b/LayoutTests/compositing/layer-creation/scroll-blocks-on-script.html
|
| @@ -0,0 +1,22 @@
|
| +<!DOCTYPE html>
|
| +<style>
|
| +#target {
|
| + width: 20px;
|
| + height: 20px;
|
| +}
|
| +</style>
|
| +<script>
|
| + if (window.testRunner) {
|
| + window.testRunner.dumpAsText();
|
| + }
|
| +
|
| + onload = function() {
|
| + target.style.scrollBlocksOn = 'scroll-event';
|
| + 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 setting scroll-blocks-on from script immediately creates the necessary layer.
|
| +<div id="target"></div>
|
| +<pre id="output"></pre>
|
|
|