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

Side by Side Diff: LayoutTests/compositing/iframes/fixed-position-element-in-iframe-enters-viewport.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 This test verifies that a fixed position element inside an iframe paints when 3 This test verifies that a fixed position element inside an iframe paints when
4 it comes into view due to the iframe increasing in size. 4 it comes into view due to the iframe increasing in size.
5 5
6 If this test passes, you should see a green square. 6 If this test passes, you should see a green square.
7 --> 7 -->
8 <html> 8 <html>
9 <head> 9 <head>
10 <style> 10 <style>
11 #iframe-containing-fixed-position-element { 11 #iframe-containing-fixed-position-element {
12 background: red; 12 background: red;
13 width: 100px; 13 width: 100px;
14 height: 0; 14 height: 0;
15 border: 0; 15 border: 0;
16 } 16 }
17 </style> 17 </style>
18 <script src="../../resources/run-after-display.js"></script> 18 <script src="../../resources/run-after-display.js"></script>
19 <script> 19 <script>
20 if (window.testRunner) 20 if (window.testRunner)
21 testRunner.waitUntilDone(); 21 testRunner.waitUntilDone();
22 22
23 if (window.internals) 23 if (window.internals)
24 window.internals.settings.setAcceleratedCompositingForFixedPositionE nabled(true); 24 window.internals.settings.setPreferCompositingToLCDTextEnabled(true) ;
25 25
26 function runTest() 26 function runTest()
27 { 27 {
28 // Initially, the fixed position element in the iframe will not 28 // Initially, the fixed position element in the iframe will not
29 // paint because the iframe has zero height. 29 // paint because the iframe has zero height.
30 runAfterDisplay(function() { 30 runAfterDisplay(function() {
31 // Give the iframe a non-zero height. The fixed position element 31 // Give the iframe a non-zero height. The fixed position element
32 // inside the iframe should paint now. 32 // inside the iframe should paint now.
33 var iframeElement = document.getElementById("iframe-containing-f ixed-position-element"); 33 var iframeElement = document.getElementById("iframe-containing-f ixed-position-element");
34 iframeElement.style.height = "100px"; 34 iframeElement.style.height = "100px";
35 35
36 if (window.testRunner) 36 if (window.testRunner)
37 testRunner.notifyDone(); 37 testRunner.notifyDone();
38 }); 38 });
39 } 39 }
40 </script> 40 </script>
41 </head> 41 </head>
42 <body onload="runTest()"> 42 <body onload="runTest()">
43 <iframe id="iframe-containing-fixed-position-element" src="resources/subfram e-with-fixed-position-element.html"></iframe> 43 <iframe id="iframe-containing-fixed-position-element" src="resources/subfram e-with-fixed-position-element.html"></iframe>
44 </body> 44 </body>
45 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698