Letractively / svgweb

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

dynamically applied color should cascade, with reduced testcase #362

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
given a group of text elements like so

       <g id="bar" fill="#00ff00">

               <text x="200" y="200">99</text>
               <text x="300" y="200">66</text>

       </g>

and all the text should change its color by script without adressing
each text node individually

       document.getElementById('bar').setAttribute('fill','#ff0000');

this works in all the native implementations but not with the Flash
renderer (r934).

The color cascades correctly for the static case (both numbers are green) but 
on the Flash renderer 
they won't change their color by scripting the g element.

Reduced testcase:
http://vis.uell.net/gsvg/text_color.html

Original issue reported on code.google.com by mneu...@gmail.com on 23 Oct 2009 at 7:50

GoogleCodeExporter commented 8 years ago
Fixed in r957.

Original comment by grick23@gmail.com on 2 Nov 2009 at 1:39