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

Side by Side Diff: LayoutTests/compositing/layer-creation/fixed-position-in-view-dynamic.html

Issue 12499009: Merge 146940 "Non-paintsContent fixed position layer should not ..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/compositing/layer-creation/fixed-position-no-content-scroll-reason.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 .fixed { 6 .fixed {
7 position: fixed; 7 position: fixed;
8 width: 10px; 8 width: 10px;
9 height: 10px; 9 height: 10px;
10 top: 100px; 10 top: 100px;
11 background-color: silver;
11 } 12 }
12 </style> 13 </style>
13 14
14 <script type="text/javascript"> 15 <script type="text/javascript">
15 if (window.testRunner && window.internals) { 16 if (window.testRunner && window.internals) {
16 testRunner.dumpAsText(); 17 testRunner.dumpAsText();
17 internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true); 18 internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
18 internals.settings.setFixedPositionCreatesStackingContext(true); 19 internals.settings.setFixedPositionCreatesStackingContext(true);
19 20
20 addEventListener("load", function() { 21 addEventListener("load", function() {
21 var fixed = document.createElement("div"); 22 var fixed = document.createElement("div");
22 document.body.appendChild(fixed); 23 document.body.appendChild(fixed);
23 document.body.offsetHeight; 24 document.body.offsetHeight;
24 fixed.className = "fixed"; 25 fixed.className = "fixed";
25 var mainThreadScrollingReasons = internals.mainThreadScrollingReasons(do cument); 26 var mainThreadScrollingReasons = internals.mainThreadScrollingReasons(do cument);
26 document.getElementById("result").innerText = !mainThreadScrollingReason s ? "PASS" : "FAIL: " + mainThreadScrollingReasons; 27 document.getElementById("result").innerText = !mainThreadScrollingReason s ? "PASS" : "FAIL: " + mainThreadScrollingReasons;
27 }, false); 28 }, false);
28 } 29 }
29 </script> 30 </script>
30 </head> 31 </head>
31 32
32 <body> 33 <body>
33 <pre id="result"></pre> 34 <pre id="result"></pre>
34 </body> 35 </body>
35 </html> 36 </html>
36 37
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/compositing/layer-creation/fixed-position-no-content-scroll-reason.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698