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

Side by Side Diff: LayoutTests/compositing/layer-creation/fixed-position-nonscrollable-body-mismatch-containers.html

Issue 476273003: Rename acceleratedCompositingForFixedPosition to preferCompositingToLCDText. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm-fixedpos: rebase Created 6 years, 4 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> 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 z-index: 1; 8 z-index: 1;
9 } 9 }
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 43
44 .scrollable { 44 .scrollable {
45 border: solid black 1px; 45 border: solid black 1px;
46 overflow: scroll; 46 overflow: scroll;
47 } 47 }
48 </style> 48 </style>
49 49
50 <script type="text/javascript"> 50 <script type="text/javascript">
51 if (window.internals) 51 if (window.internals)
52 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled (true); 52 window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
53 53
54 if (window.testRunner) { 54 if (window.testRunner) {
55 testRunner.dumpAsText(); 55 testRunner.dumpAsText();
56 56
57 window.addEventListener("load", function() { 57 window.addEventListener("load", function() {
58 document.getElementById("layertree").innerText = window.internals.layerT reeAsText(document); 58 document.getElementById("layertree").innerText = window.internals.layerT reeAsText(document);
59 }, false); 59 }, false);
60 } 60 }
61 </script> 61 </script>
62 </head> 62 </head>
63 63
64 <body class="unscrollable"> 64 <body class="unscrollable">
65 <p>Even though the fixed-position element's container is nonscrollable, it 65 <p>Even though the fixed-position element's container is nonscrollable, it
66 should still be composited because one of its ancestors is scrolling.</p> 66 should still be composited because one of its ancestors is scrolling.</p>
67 <pre id="layertree"></pre> 67 <pre id="layertree"></pre>
68 68
69 <div class="scrollable bigBox"> 69 <div class="scrollable bigBox">
70 <div style="height: 800px;"></div> 70 <div style="height: 800px;"></div>
71 <div class="fixed lime box"></div> 71 <div class="fixed lime box"></div>
72 </div> 72 </div>
73 </body> 73 </body>
74 </html> 74 </html>
75 75
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698