Bug 592477 - SVG SMIL: Flush styles before running sample - test case; r=roc; a=blocking-final

This commit is contained in:
Brian Birtles 2010-10-13 09:15:22 +09:00
parent 1bef74c070
commit 2901d17b2d
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
<xht:table xmlns:xht="http://www.w3.org/1999/xhtml"
xmlns:xbl="http://www.mozilla.org/xbl">
<xht:script type="text/javascript">// <![CDATA[
function boom() {
var topRight = document.getElementById('topRight');
topRight.appendChild(document.createElement("g"));
}
//]]> </xht:script>
<xbl:bindings>
<xbl:binding>
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
onload="setTimeout(boom, 0)">
<defs>
<g id="markerGroup">
<g id="topLeft"/>
<g id="topRight"/>
<set xlink:href="#topLeft" attributeName="fill" to="green" dur="1s"/>
</g>
</defs>
<use xlink:href="#markerGroup"/>
</svg>
</xbl:binding>
</xbl:bindings>
</xht:table>

View File

@ -16,3 +16,4 @@ load 554202-2.svg
load 554141-1.svg
load 555026-1.svg
load 556841-1.svg
load 592477-1.xhtml