1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/generic/test/plugin_clipping_helper_transformed.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,42 @@ 1.4 +<?xml version="1.0"?> 1.5 +<?xml-stylesheet href="/tests/SimpleTest/test.css" type="text/css"?> 1.6 +<html xmlns="http://www.w3.org/1999/xhtml" title="Test Plugin Clipping: Plugins in Transforms"> 1.7 +<head> 1.8 + <style> 1.9 + embed { width:300px; height:200px; display:block; } 1.10 + </style> 1.11 +</head> 1.12 +<body> 1.13 + 1.14 +<!-- Use a XUL element here so we can get its boxObject.screenX/Y --> 1.15 +<hbox style="height:10px; position:absolute; left:0; top:0; z-index:-100;" id="h1" 1.16 + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 1.17 + <hbox style="width:100px;"></hbox><hbox id="h2"/> 1.18 +</hbox> 1.19 + 1.20 +<div style="width:200px; position:absolute; top:0; left:0; -moz-transform:rotate(90deg)"> 1.21 + <embed id="p1" type="application/x-test" wmode="window"></embed> 1.22 +</div> 1.23 +<svg xmlns="http://www.w3.org/2000/svg" style="width:200px; position:absolute; top:200px; left:0;"> 1.24 + <foreignObject width="200" height="200"> 1.25 + <embed xmlns="http://www.w3.org/1999/xhtml" id="p2" type="application/x-test" wmode="window"></embed> 1.26 + </foreignObject> 1.27 +</svg> 1.28 + 1.29 +<script src="plugin_clipping_lib.js"></script> 1.30 +<script class="testbody" type="application/javascript"> 1.31 +<![CDATA[ 1.32 + 1.33 +function runTests() { 1.34 + // p1 and p2 are both in a transformed context so they should be hidden. 1.35 + checkClipRegionNoBounds("p1", []); 1.36 + checkClipRegionNoBounds("p2", []); 1.37 + 1.38 + window.opener.childDone(); 1.39 +} 1.40 + 1.41 +]]> 1.42 +</script> 1.43 + 1.44 +</body> 1.45 +</html>