Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Side by Side Diff: LayoutTests/compositing/layer-creation/scroll-blocks-on-explicit.html

Issue 784453003: Initial scroll-blocks-on compositor integration (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove unneeded TODO Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 #layer1 {
4 height: 1px;
5 scroll-blocks-on: wheel-event;
6 }
7 #layer2 {
8 height: 2px;
9 scroll-blocks-on: start-touch scroll-event;
10 }
11 #layer3 {
12 height: 3px;
13 scroll-blocks-on: none;
14 }
15 </style>
16 <script>
17 if (window.testRunner) {
18 window.testRunner.dumpAsText();
19 }
20
21 onload = function() {
22 var output = document.getElementById('output');
23 if (window.internals)
24 document.getElementById('output').innerText += window.internals.laye rTreeAsText(document, internals.LAYER_TREE_INCLUDES_SCROLL_BLOCKS_ON);
25 };
26 </script>
27 Verifies that setting the scroll-blocks-on property in a stylesheet creates laye rs with the correct modes and that explicitly setting 'none' does not create a l ayer.
28 <div id=layer1></div>
29 <div id=layer2></div>
30 <div id=layer3></div>
31 <pre id="output"></pre>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698