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

Side by Side Diff: LayoutTests/compositing/layer-creation/scroll-blocks-on-iframe.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 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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698