layout/generic/test/plugin_clipping_helper_table.xhtml

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:3afdc6b96095
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="/tests/SimpleTest/test.css" type="text/css"?>
3 <html xmlns="http://www.w3.org/1999/xhtml" title="Test Plugin Clipping: Plugins and Tables">
4 <head>
5 <style>
6 embed { width:300px; height:200px; display:block; }
7 </style>
8 </head>
9 <body>
10
11 <!-- Use a XUL element here so we can get its boxObject.screenX/Y -->
12 <hbox style="height:10px; position:absolute; left:0; top:0; z-index:-100;" id="h1"
13 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
14 <hbox style="width:100px;"></hbox><hbox id="h2"/>
15 </hbox>
16
17 <embed id="p1" type="application/x-test" wmode="window"
18 style="position:absolute; top:0; left:0;"></embed>
19 <table style="width:300px; height:100px; position:absolute; top:100px; left:0; background:white;">
20 </table>
21 <embed id="p2" type="application/x-test" wmode="window"
22 style="position:absolute; top:200px; left:0;"></embed>
23 <table style="width:300px; height:300px; position:absolute; top:300px; left:0; background:white; border-collapse:collapse;">
24 </table>
25
26 <script src="plugin_clipping_lib.js"></script>
27 <script class="testbody" type="application/javascript">
28 <![CDATA[
29
30 function runTests() {
31 // p1 is partially covered by a table with an opaque background
32 checkClipRegion("p1", [[0, 0, 300, 100]]);
33 // p2 is partially covered by a table with an opaque background
34 checkClipRegion("p2", [[0, 0, 300, 100]]);
35
36 window.opener.SimpleTest.finish();
37 window.close();
38 }
39
40 ]]>
41 </script>
42
43 </body>
44 </html>

mercurial