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

Side by Side Diff: LayoutTests/compositing/repaint/fixed-pos-with-composited-child.html

Issue 206463009: Rip out Settings::fixedPositionCreatesStackingContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: typo Created 6 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 3
4 <head> 4 <head>
5 <script src="../../resources/run-after-display.js"></script> 5 <script src="../../resources/run-after-display.js"></script>
6 <style> 6 <style>
7 7
8 .fixedContainer { 8 .fixedContainer {
9 position: fixed; 9 position: fixed;
10 overflow:hidden; 10 overflow:hidden;
(...skipping 14 matching lines...) Expand all
25 25
26 <script> 26 <script>
27 if (window.testRunner) { 27 if (window.testRunner) {
28 testRunner.dumpAsText(); 28 testRunner.dumpAsText();
29 testRunner.waitUntilDone(); 29 testRunner.waitUntilDone();
30 } 30 }
31 31
32 if (window.internals) { 32 if (window.internals) {
33 /* Note carefully, compositing for fixed position is _disabled_ here */ 33 /* Note carefully, compositing for fixed position is _disabled_ here */
34 internals.settings.setAcceleratedCompositingForFixedPositionEnabled(fals e); 34 internals.settings.setAcceleratedCompositingForFixedPositionEnabled(fals e);
35 internals.settings.setFixedPositionCreatesStackingContext(true);
36 } 35 }
37 36
38 function test() 37 function test()
39 { 38 {
40 runAfterDisplay(function() { 39 runAfterDisplay(function() {
41 if (window.internals) 40 if (window.internals)
42 window.internals.startTrackingRepaints(document); 41 window.internals.startTrackingRepaints(document);
43 42
44 window.scrollTo(0, 100); 43 window.scrollTo(0, 100);
45 44
(...skipping 26 matching lines...) Expand all
72 71
73 <!-- Scrolling should not cause either div to move around on the viewport. --> 72 <!-- Scrolling should not cause either div to move around on the viewport. -->
74 <div class="fixedContainer"> 73 <div class="fixedContainer">
75 <div id="foo"></div> 74 <div id="foo"></div>
76 </div> 75 </div>
77 76
78 <pre id="layers"></pre> 77 <pre id="layers"></pre>
79 </body> 78 </body>
80 79
81 </html> 80 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698