OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
6 iframe { | 6 iframe { |
7 margin: 20px; | 7 margin: 20px; |
8 height: 200px; | 8 height: 200px; |
9 width: 200px; | 9 width: 200px; |
10 border: 1px solid black; | 10 border: 1px solid black; |
11 } | 11 } |
12 | 12 |
13 .composited { | 13 .composited { |
14 -webkit-transform: translateZ(0); | 14 -webkit-transform: translateZ(0); |
15 } | 15 } |
16 | 16 |
17 </style> | 17 </style> |
| 18 <script src="../../resources/run-after-display.js"></script> |
18 <script type="text/javascript" charset="utf-8"> | 19 <script type="text/javascript" charset="utf-8"> |
19 function doTest() | 20 function doTest() |
20 { | 21 { |
21 if (window.testRunner) | 22 if (window.testRunner) |
22 testRunner.display(); | 23 testRunner.waitUntilDone(); |
23 | 24 |
24 document.getElementById('iframe').className = 'composited'; | 25 runAfterDisplay(function() { |
| 26 document.getElementById('iframe').className = 'composited'; |
| 27 if (window.testRunner) |
| 28 testRunner.notifyDone(); |
| 29 }); |
25 } | 30 } |
26 | 31 |
27 window.addEventListener('load', doTest, false); | 32 window.addEventListener('load', doTest, false); |
28 </script> | 33 </script> |
29 </head> | 34 </head> |
30 <body> | 35 <body> |
31 | 36 |
32 <!-- Test with already-composited iframe contents, and iframe itself composi
ted. --> | 37 <!-- Test with already-composited iframe contents, and iframe itself composi
ted. --> |
33 <!-- You should see a green square, no red. --> | 38 <!-- You should see a green square, no red. --> |
34 <iframe id="iframe" scrolling="no" src="resources/red-green-subframe.html"><
/iframe> | 39 <iframe id="iframe" scrolling="no" src="resources/red-green-subframe.html"><
/iframe> |
35 | 40 |
36 </body> | 41 </body> |
37 </html> | 42 </html> |
OLD | NEW |