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

Side by Side Diff: LayoutTests/compositing/layer-creation/fixed-position-nonscrollable-body-overlap.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 21 matching lines...) Expand all
32 background-color: lime; 32 background-color: lime;
33 } 33 }
34 34
35 .composited { 35 .composited {
36 -webkit-transform: translatez(0); 36 -webkit-transform: translatez(0);
37 } 37 }
38 </style> 38 </style>
39 39
40 <script type="text/javascript"> 40 <script type="text/javascript">
41 if (window.internals) 41 if (window.internals)
42 window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled (true); 42 window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
43 43
44 if (window.testRunner) { 44 if (window.testRunner) {
45 testRunner.dumpAsText(); 45 testRunner.dumpAsText();
46 46
47 window.addEventListener("load", function() { 47 window.addEventListener("load", function() {
48 document.getElementById("layertree").innerText = window.internals.layerT reeAsText(document); 48 document.getElementById("layertree").innerText = window.internals.layerT reeAsText(document);
49 }, false); 49 }, false);
50 } 50 }
51 </script> 51 </script>
52 </head> 52 </head>
53 53
54 <body class="unscrollable"> 54 <body class="unscrollable">
55 <div style="height: 4000px"> 55 <div style="height: 4000px">
56 <p>Even though we can opt-out of fixed-position compositing for 56 <p>Even though we can opt-out of fixed-position compositing for
57 unscrollable fixed-position containers, we still need to composite 57 unscrollable fixed-position containers, we still need to composite
58 fixed-position layers that need compositing for other reasons such as 58 fixed-position layers that need compositing for other reasons such as
59 overlap.</p> 59 overlap.</p>
60 <pre id="layertree"></pre> 60 <pre id="layertree"></pre>
61 </div> 61 </div>
62 62
63 <div class="absolute composited red box"></div> 63 <div class="absolute composited red box"></div>
64 64
65 <!-- This should be composited because it overlaps a composited layer. --> 65 <!-- This should be composited because it overlaps a composited layer. -->
66 <div class="fixed lime box"></div> 66 <div class="fixed lime box"></div>
67 </body> 67 </body>
68 </html> 68 </html>
69 69
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698