OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <!-- https://bugs.webkit.org/show_bug.cgi?id=17688 - ensure the <embed> elem
ent does not propagate its height and width to an object ancestor node --> | 3 <!-- https://bugs.webkit.org/show_bug.cgi?id=17688 - ensure the <embed> elem
ent does not propagate its height and width to an object ancestor node --> |
4 <script> | 4 <script> |
5 if (window.testRunner) { | 5 if (window.testRunner) { |
6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
8 } | 8 } |
9 | 9 |
10 function measure() { | 10 function measure() { |
11 if ((document.getElementById("first").offsetWidth == document.getEle
mentById("second").offsetWidth) | 11 if ((document.getElementById("first").offsetWidth == document.getEle
mentById("second").offsetWidth) |
12 && (document.getElementById("first").offsetHeight == document.ge
tElementById("second").offsetHeight) | 12 && (document.getElementById("first").offsetHeight == document.ge
tElementById("second").offsetHeight) |
13 && document.getElementById("third").height == 100 | 13 && document.getElementById("third").height == 100 |
14 && document.getElementById("third").width == 100) | 14 && document.getElementById("third").width == 100) |
15 document.getElementById("console").innerHTML = "SUCCESS"; | 15 document.getElementById("console").innerHTML = "SUCCESS"; |
16 testRunner.notifyDone(); | 16 testRunner.notifyDone(); |
17 } | 17 } |
18 | 18 |
19 function test(){ | 19 function test(){ |
20 window.setTimeout(measure(),0); | 20 window.setTimeout(measure(),0); |
21 } | 21 } |
22 </script> | 22 </script> |
23 </head> | 23 </head> |
24 <body onload="test();"> | 24 <body onload="test();"> |
25 <object id="first" data="resources/mu.png" style="height: 100px; width:100px
;"><embed height="300" width="300"></object> | 25 <object id="first" data="resources/mu.png" style="height: 100px; width:100px
;"><embed height="300" width="300"></object> |
26 <br> | 26 <br> |
27 <object id="second" data="resources/mu.png" style="" width="100" height="100
"><embed height="300" width="300" type="application/x-shockwave-flash" src="../.
./plugins/resources/simple_blank.swf"></object> | 27 <object id="second" data="resources/mu.png" style="" width="100" height="100
"><embed height="300" width="300" type="application/x-shockwave-flash" src="../p
lugins/resources/simple_blank.swf"></object> |
28 <br> | 28 <br> |
29 <object id="third" style="" width="100" height="100"><embed height="300" wid
th="300" type="application/x-shockwave-flash" src="../../plugins/resources/simpl
e_blank.swf"></object> | 29 <object id="third" style="" width="100" height="100"><embed height="300" wid
th="300" type="application/x-shockwave-flash" src="../plugins/resources/simple_b
lank.swf"></object> |
30 <div id="console">FAILURE</div> | 30 <div id="console">FAILURE</div> |
31 </body></html> | 31 </body></html> |
32 | 32 |
OLD | NEW |