W3C home > Mailing lists > Public > www-svg@w3.org > January 2006

Re: [SVGMobile12] SVGT12-207: Conformance to uDOM

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 3 Jan 2006 19:02:43 +0000 (UTC)
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: www-svg@w3.org
Message-ID: <Pine.LNX.4.62.0601031859580.2856@dhalsim.dreamhost.com>

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 

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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:06 UTC