| 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 margin: 20px; | 9 margin: 20px; |
| 10 height: 150px; | 10 height: 150px; |
| 11 width: 300px; | 11 width: 300px; |
| 12 -webkit-box-shadow: 0 0 20px black; | 12 -webkit-box-shadow: 0 0 20px black; |
| 13 } | 13 } |
| 14 | 14 |
| 15 .overlay { | 15 .overlay { |
| 16 position: absolute; | 16 position: absolute; |
| 17 width: 50px; | 17 width: 50px; |
| 18 height: 50px; | 18 height: 50px; |
| 19 top: 5px; | 19 top: 5px; |
| 20 left: 5px; | 20 left: 5px; |
| 21 background-color: rgba(0, 0, 0, 0.2); | 21 background-color: rgba(0, 0, 0, 0.2); |
| 22 } | 22 } |
| 23 | 23 |
| 24 </style> | 24 </style> |
| 25 <script type="text/javascript" charset="utf-8"> | 25 <script type="text/javascript" charset="utf-8"> |
| 26 if (window.testRunner) { | 26 if (window.testRunner) { |
| 27 testRunner.dumpAsText(); | 27 testRunner.dumpAsText(); |
| 28 testRunner.waitUntilDone(); | |
| 29 } | 28 } |
| 30 | 29 |
| 31 function doTest() | 30 function doTest() |
| 32 { | 31 { |
| 33 // For some reason this delay is required for AppKit to not short-circui
t the display. | 32 if (window.testRunner) { |
| 34 window.setTimeout(function() { | 33 document.getElementById('layers').innerHTML = window.internals.layer
TreeAsText(document); |
| 35 if (window.testRunner) { | 34 } |
| 36 testRunner.display(); | |
| 37 document.getElementById('layers').innerHTML = window.internals.lay
erTreeAsText(document); | |
| 38 testRunner.notifyDone(); | |
| 39 } | |
| 40 }, 0); | |
| 41 } | 35 } |
| 42 | 36 |
| 43 window.addEventListener('load', doTest, false); | 37 window.addEventListener('load', doTest, false); |
| 44 </script> | 38 </script> |
| 45 </head> | 39 </head> |
| 46 <body> | 40 <body> |
| 47 | 41 |
| 48 <!-- The parent document may into compositing mode by the iframe. --> | 42 <!-- The parent document may into compositing mode by the iframe. --> |
| 49 <iframe id="parent-iframe" src="resources/composited-subframe.html"></iframe
> | 43 <iframe id="parent-iframe" src="resources/composited-subframe.html"></iframe
> |
| 50 | 44 |
| 51 <div class="overlay"> | 45 <div class="overlay"> |
| 52 </div> | 46 </div> |
| 53 | 47 |
| 54 <pre id="layers">Layer tree appears here in DRT.</pre> | 48 <pre id="layers">Layer tree appears here in DRT.</pre> |
| 55 </body> | 49 </body> |
| 56 </html> | 50 </html> |
| OLD | NEW |