Fix for 4109667, sIFR flash replacement technique often malfunctions. This bug...
[WebKit-https.git] / LayoutTests / fast / dynamic / flash-replacement-test.html
1                 
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <title>Reduced Test Case</title>
6
7 <link href="bogus.css" rel="stylesheet" type="text/css" media="screen" />
8
9 <script language="javascript" type="text/javascript">
10
11 function measure2() {
12         document.getElementById('result').innerHTML = 'The resulting width is ' + document.getElementById('hello').offsetWidth;
13 }
14
15 // BEGIN PROXY FUNCTION
16 // If we call the above function using this as a proxy, it works. Even with a "0" as our delay.
17
18 function measure() {
19         setTimeout("measure2()",0);
20 }
21
22 // END PROXY FUNCTION
23
24
25 </script>               
26
27 </head>
28 <body onload="measure2()">
29
30 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="249" height="154"><param name="movie" value="bogus.swf"><param name="bgcolor" value="#000000"><param name="quality" value="high"><embed src="featuredcase.swf" bgcolor="#000000" quality="high" width="249" height="154" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></object>
31
32 <br />
33 <h1 id="hello" style="background-color: #FF0000">Measure Me</h1>
34
35  
36 <div id="result"></div>
37
38 </body>
39 </html>