Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1b41cc5725
Fetching contributors…

Cannot retrieve contributors at this time

file 64 lines (51 sloc) 2.229 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
</head>
<body>
<p><b>BUG ID:</b> <a href="rdar://problem/3572507">3572507</a> Flash in div with display:none style will not redraw when style changed to display:block (3479)</p>

<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> <br>
1. Verify that there is a Flash animation playing below.<br>
2. Click "Hide Flash".<br>
3. Click "Show Flash".<br>
</p>

<p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b>
The Flash movie hides when "Hide Flash" is clicked, and shows again when "Show Flash" is clicked.
</p>

<p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>
The Flash movie hides when "Hide Flash" is clicked, but does not show again when "Show Flash" is clicked. Clicking on "Hide Flash" and then "Show Flash" again will show the movie.
</p>

<script language="JavaScript">

// 2 html tabs for multiple flash/java
var selected = "tab1";

function tabClick(whichTab) {
selected = whichTab;

if (whichTab == "tab1") {
document.getElementById('tab1').style.display = "block";
document.getElementById('tab2').style.display = "none";
}
else if (whichTab == "tab2") {
document.getElementById('tab2').style.display = "block";
document.getElementById('tab1').style.display = "none";
}
}
</script>

<div>

<input type=button value="Hide Flash" onClick="tabClick('tab2')"><input type=button value="Show Flash" onClick="tabClick('tab1')">


<div id="tab2" style="display: none">
Flash hidden.
</div>

<div id="tab1">
<object id="scopeFlash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="200" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">
<param name="movie" value="resources/spinbox.swf">
<param name="quality" value="high">
<comment>
<embed src="resources/spinbox.swf" width="300" height="200" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>
</comment>
</object>
</div>
</div>

</body>
</html>
Something went wrong with that request. Please try again.