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

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: Eliminate scrollbars from iframe test for cross-platform output consistency 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 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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698