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

Side by Side Diff: LayoutTests/compositing/overflow/composited-scrolling-creates-a-stacking-container.html

Issue 14858004: Clean up the way layout tests force elements to opt in/out of composited scrolling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 7 years, 7 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
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd"> 2 "http://www.w3.org/TR/html4/loose.dtd">
3 3
4 <html lang="en"> 4 <html lang="en">
5 <head> 5 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7 <title>Composited scrolling creates a stacking context.</title> 7 <title>Composited scrolling creates a stacking context.</title>
8 <style type="text/css" media="screen"> 8 <style type="text/css" media="screen">
9 .container { 9 .container {
10 width: 200px; 10 width: 200px;
(...skipping 27 matching lines...) Expand all
38 width: 200px; 38 width: 200px;
39 height: 300px; 39 height: 300px;
40 background-color: red; 40 background-color: red;
41 } 41 }
42 </style> 42 </style>
43 <script type="text/javascript" charset="utf-8"> 43 <script type="text/javascript" charset="utf-8">
44 if (window.testRunner) 44 if (window.testRunner)
45 testRunner.dumpAsText(); 45 testRunner.dumpAsText();
46 46
47 if (window.internals) 47 if (window.internals)
48 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable d(true); 48 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable dMode(window.internals.settings.AcceleratedCompositingForOverflowScrollEnabled);
49 49
50 function doTest() 50 function doTest()
51 { 51 {
52 document.body.offsetTop; 52 document.body.offsetTop;
53 53
54 if (window.internals) { 54 if (window.internals) {
55 var layerTree = window.internals.layerTreeAsText(document); 55 var layerTree = window.internals.layerTreeAsText(document);
56 var pre = document.getElementById('console'); 56 var pre = document.getElementById('console');
57 var text = document.createTextNode(layerTree + '\n'); 57 var text = document.createTextNode(layerTree + '\n');
58 pre.appendChild(text); 58 pre.appendChild(text);
59 } 59 }
60 } 60 }
61 61
62 window.addEventListener('load', doTest, false); 62 window.addEventListener('load', doTest, false);
63 </script> 63 </script>
64 </head> 64 </head>
65 <body> 65 <body>
66 <div class="container"> 66 <div class="container">
67 <div class="in-flow-positioned"> 67 <div class="in-flow-positioned">
68 <div class="fixed"></div> 68 <div class="fixed"></div>
69 </div> 69 </div>
70 <div class="composited"></div> 70 <div class="composited"></div>
71 <div class="not-composited"></div> 71 <div class="not-composited"></div>
72 </div> 72 </div>
73 <pre id="console"></pre> 73 <pre id="console"></pre>
74 </body> 74 </body>
75 </html> 75 </html>
76 76
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698