MRchildNEO / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Unable to animate visibility on initially hidden elements #585

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Using Owlephant, Flash 10, view the attachment visible.html with 
?svg.render.forceflash=true

What is the expected output?

After 2s a red rectangle with blue stroke should become visible.

What do you see instead?

The rectangle remains hidden.

The animated part of the test case is:

  <rect id="r" visibility="hidden" fill="red" stroke="blue" stroke-width="10"
        x="100" y="100" width="800" height="600">
    <set atrributeType="XML" attributeName="visibility" to="visible" begin="2s"/>
  </rect>

When the visibility attribute of stroked and filled elements is initially 
"hidden", subsequent setting to "visible" results in nothing being rendered. 
Two conditions were missed in the patch for Issue 531 to ensure strokes and 
fills are initially rendered even if visibility="hidden".  
(SVGNode.nodeBeginFill/ nodeBeginStroke). 

The attached patch fixes the missed conditions.

Original issue reported on code.google.com by k...@svgmaker.com on 2 Dec 2010 at 7:47

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by bradneub...@gmail.com on 4 Dec 2010 at 1:27