layout/generic/test/plugin_clipping_helper_transformed.xhtml

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:2df31e6f7c18
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 in Transforms">
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 <div style="width:200px; position:absolute; top:0; left:0; -moz-transform:rotate(90deg)">
18 <embed id="p1" type="application/x-test" wmode="window"></embed>
19 </div>
20 <svg xmlns="http://www.w3.org/2000/svg" style="width:200px; position:absolute; top:200px; left:0;">
21 <foreignObject width="200" height="200">
22 <embed xmlns="http://www.w3.org/1999/xhtml" id="p2" type="application/x-test" wmode="window"></embed>
23 </foreignObject>
24 </svg>
25
26 <script src="plugin_clipping_lib.js"></script>
27 <script class="testbody" type="application/javascript">
28 <![CDATA[
29
30 function runTests() {
31 // p1 and p2 are both in a transformed context so they should be hidden.
32 checkClipRegionNoBounds("p1", []);
33 checkClipRegionNoBounds("p2", []);
34
35 window.opener.childDone();
36 }
37
38 ]]>
39 </script>
40
41 </body>
42 </html>

mercurial