Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <?xml-stylesheet href="/tests/SimpleTest/test.css" type="text/css"?> |
michael@0 | 3 | <html xmlns="http://www.w3.org/1999/xhtml" title="Test Plugin Clipping: Plugins in Transforms"> |
michael@0 | 4 | <head> |
michael@0 | 5 | <style> |
michael@0 | 6 | embed { width:300px; height:200px; display:block; } |
michael@0 | 7 | </style> |
michael@0 | 8 | </head> |
michael@0 | 9 | <body> |
michael@0 | 10 | |
michael@0 | 11 | <!-- Use a XUL element here so we can get its boxObject.screenX/Y --> |
michael@0 | 12 | <hbox style="height:10px; position:absolute; left:0; top:0; z-index:-100;" id="h1" |
michael@0 | 13 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
michael@0 | 14 | <hbox style="width:100px;"></hbox><hbox id="h2"/> |
michael@0 | 15 | </hbox> |
michael@0 | 16 | |
michael@0 | 17 | <div style="width:200px; position:absolute; top:0; left:0; -moz-transform:rotate(90deg)"> |
michael@0 | 18 | <embed id="p1" type="application/x-test" wmode="window"></embed> |
michael@0 | 19 | </div> |
michael@0 | 20 | <svg xmlns="http://www.w3.org/2000/svg" style="width:200px; position:absolute; top:200px; left:0;"> |
michael@0 | 21 | <foreignObject width="200" height="200"> |
michael@0 | 22 | <embed xmlns="http://www.w3.org/1999/xhtml" id="p2" type="application/x-test" wmode="window"></embed> |
michael@0 | 23 | </foreignObject> |
michael@0 | 24 | </svg> |
michael@0 | 25 | |
michael@0 | 26 | <script src="plugin_clipping_lib.js"></script> |
michael@0 | 27 | <script class="testbody" type="application/javascript"> |
michael@0 | 28 | <![CDATA[ |
michael@0 | 29 | |
michael@0 | 30 | function runTests() { |
michael@0 | 31 | // p1 and p2 are both in a transformed context so they should be hidden. |
michael@0 | 32 | checkClipRegionNoBounds("p1", []); |
michael@0 | 33 | checkClipRegionNoBounds("p2", []); |
michael@0 | 34 | |
michael@0 | 35 | window.opener.childDone(); |
michael@0 | 36 | } |
michael@0 | 37 | |
michael@0 | 38 | ]]> |
michael@0 | 39 | </script> |
michael@0 | 40 | |
michael@0 | 41 | </body> |
michael@0 | 42 | </html> |