On Tue, 3 Jan 2006, Bjoern Hoehrmann wrote: > > In the SVG DOM getComputedStyle is not available on the global object, It's available on CSSView, which is implemented on Window -- whether the SVG spec says this or not, that's how things are. > and the RGBColor members are CSSPrimitiveValues which you cannot add > integers to, you'd have to use color.red.getFloatValue() Oh, right, forgot about that. > there is no gurantee that this would have the same effect e.g. if > percentages [...] Sure, there are numerous logic problems with the script, just like with the original. I was just showing that the original could be converted to use existing specs. > The effect is also quite different from using the setTrait methods since > they operate on the very low XML attribute level, if you have > > <text style="fill:green" ... > > there is no way to change that through the setTrait methods unless you > remove the style attribute. Good lord. That alone should be a reason to drop the entire traits nonsense. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'Received on Tuesday, 3 January 2006 19:06:04 GMT
This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:33 GMT