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

Side by Side Diff: LayoutTests/compositing/iframes/iframe-copy-on-scroll.html

Issue 637763002: Unprefix usage of -webkit-transform in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style type="text/css" media="screen"> 4 <style type="text/css" media="screen">
5 .container { 5 .container {
6 position: absolute; 6 position: absolute;
7 padding: 10px; 7 padding: 10px;
8 z-index: 1; 8 z-index: 1;
9 } 9 }
10 .composited { 10 .composited {
11 position: absolute; 11 position: absolute;
12 -webkit-transform: translateZ(0); 12 transform: translateZ(0);
13 } 13 }
14 </style> 14 </style>
15 <script type="text/javascript" charset="utf-8"> 15 <script type="text/javascript" charset="utf-8">
16 if (window.testRunner) 16 if (window.testRunner)
17 testRunner.waitUntilDone(); 17 testRunner.waitUntilDone();
18 18
19 function doTest() 19 function doTest()
20 { 20 {
21 // Need to wait for compositing layers to be updated. 21 // Need to wait for compositing layers to be updated.
22 window.setTimeout(function() { 22 window.setTimeout(function() {
23 document.getElementById('iframe').contentWindow.scrollTo(0, 120) ; 23 document.getElementById('iframe').contentWindow.scrollTo(0, 120) ;
24 if (window.testRunner) 24 if (window.testRunner)
25 testRunner.notifyDone(); 25 testRunner.notifyDone();
26 }, 0); 26 }, 0);
27 } 27 }
28 28
29 window.addEventListener('load', doTest, false); 29 window.addEventListener('load', doTest, false);
30 </script> 30 </script>
31 </head> 31 </head>
32 <body> 32 <body>
33 <p>In pixel results, the blue box should be scrolled out of view.</p> 33 <p>In pixel results, the blue box should be scrolled out of view.</p>
34 <div class="container"> 34 <div class="container">
35 <iframe id="iframe" src="resources/subframe.html" style="width: 300px; heigh t: 200px;"></iframe> 35 <iframe id="iframe" src="resources/subframe.html" style="width: 300px; heigh t: 200px;"></iframe>
36 </div> 36 </div>
37 <div class="composited"> 37 <div class="composited">
38 </div> 38 </div>
39 39
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698