>>>>> "JD" == Jeremy E Denton <[EMAIL PROTECTED]> writes:

JD>     The additions from 1.1 to 1.5b are great. I've been exploring
JD> them and it really great to see. The only thing that confounds me
JD> is that there doesn't seem to be support for changing basic
JD> attribute values like fill or stroke.  I mean one of the most
JD> basic and common uses for scripting in SVG is changing the colour
JD> of an object as the mouse passes over it. Anyone know if there is
JD> a reason for this?

    There is a reason for this.  These are in fact CSS properties they
are not actually XML attributes :) When you use 'fill="black"' you are
actually changing a 'presentation attribute' which is transparently
converted to a zero specificity CSS rule (I'm not a CSS head so if the
wording is off a bit please don't shoot me).

    The end result is that these 'basic' things are _very_ hard to do
correctly and efficently in animation (consider changing a fill on a
'g' must then cascade down to it's children).  To properly support
them we are in the processes of completely rewriting the current CSS
engine.

JD>     Anyway of getting around it?

    Only really ugly ways (like cloning the node changing the
presentation attribute and replacing the original with the new one).

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to