OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style type="text/css" media="screen"> | 3 <style type="text/css" media="screen"> |
4 body { | 4 body { |
5 overflow: hidden; | 5 overflow: hidden; |
6 } | 6 } |
7 | 7 |
8 iframe { | 8 iframe { |
9 position: absolute; | 9 position: absolute; |
10 top: 0px; | 10 top: 0px; |
11 left: 0px; | 11 left: 0px; |
12 height: 300px; | 12 height: 300px; |
13 width: 300px; | 13 width: 300px; |
14 } | 14 } |
15 | 15 |
16 #overlap { | 16 #overlap { |
17 left: 250px; | 17 left: 250px; |
18 } | 18 } |
19 | 19 |
20 pre { | 20 pre { |
21 position: absolute; | 21 position: absolute; |
22 bottom: 2000px; | 22 bottom: 2000px; |
23 left: 0px; | 23 left: 0px; |
24 } | 24 } |
25 </style> | 25 </style> |
26 <script> | 26 <script> |
27 if (window.testRunner) { | 27 if (window.testRunner) { |
28 testRunner.waitUntilDone(); | |
29 testRunner.dumpAsText(); | 28 testRunner.dumpAsText(); |
30 } | 29 } |
31 | 30 |
32 function doTest() | 31 function doTest() |
33 { | 32 { |
34 // For some reason this delay is required for AppKit to not short-circui
t the display which is required | 33 if (window.testRunner) { |
35 // for overlap testing to kick in. | 34 document.getElementById('layers').innerHTML = window.internals.layer
TreeAsText(document); |
36 window.setTimeout(function() { | 35 } |
37 if (window.testRunner) { | |
38 testRunner.display(); | |
39 document.getElementById('layers').innerHTML = window.internals.l
ayerTreeAsText(document); | |
40 testRunner.notifyDone(); | |
41 } | |
42 }, 0); | |
43 } | 36 } |
44 | 37 |
45 window.addEventListener('load', doTest, false); | 38 window.addEventListener('load', doTest, false); |
46 </script> | 39 </script> |
47 </head> | 40 </head> |
48 <body> | 41 <body> |
49 | 42 |
50 <iframe src="resources/composited-subframe.html"></iframe> | 43 <iframe src="resources/composited-subframe.html"></iframe> |
51 <!-- this iframe should become composited because it overlaps the other ifra
me --> | 44 <!-- this iframe should become composited because it overlaps the other ifra
me --> |
52 <iframe id="overlap" src="resources/subframe.html"></iframe> | 45 <iframe id="overlap" src="resources/subframe.html"></iframe> |
53 | 46 |
54 <pre id="layers">Layer tree appears here in DRT.</pre> | 47 <pre id="layers">Layer tree appears here in DRT.</pre> |
55 </body> | 48 </body> |
56 </html> | 49 </html> |
OLD | NEW |