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 border: 10px solid black; | 7 border: 10px solid black; |
8 padding: 5px; | 8 padding: 5px; |
9 height: 150px; | 9 height: 150px; |
10 width: 300px; | 10 width: 300px; |
11 -webkit-box-shadow: 0 0 20px black; | 11 -webkit-box-shadow: 0 0 20px black; |
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.dumpAsText(); | 17 testRunner.dumpAsText(); |
18 testRunner.waitUntilDone(); | 18 testRunner.waitUntilDone(); |
19 } | 19 } |
20 | 20 |
21 function doTest() | 21 function doTest() |
22 { | 22 { |
23 if (window.testRunner) { | 23 if (window.testRunner) { |
24 document.getElementById('layers').innerHTML = window.internals.layer
TreeAsText(document); | 24 document.getElementById('layers').innerHTML = window.internals.layer
TreeAsText(document); |
25 testRunner.notifyDone(); | 25 testRunner.notifyDone(); |
26 } | 26 } |
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 | 33 |
34 <!-- The parent document should be thrown into compositing mode by the ifram
e. --> | 34 <!-- The parent document should be thrown into compositing mode by the ifram
e. --> |
35 <iframe src="resources/composited-subframe.html"></iframe> | 35 <iframe src="resources/composited-subframe.html"></iframe> |
36 | 36 |
37 <pre id="layers">Layer tree appears here in DRT.</pre> | 37 <pre id="layers">Layer tree appears here in DRT.</pre> |
38 </body> | 38 </body> |
39 </html> | 39 </html> |
OLD | NEW |