W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2010

Re: DOMString-like objects for the CSSOM

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 23 Feb 2010 11:49:40 +0100
To: "Maciej Stachowiak" <mjs@apple.com>, "Brendan Eich" <brendan@mozilla.org>
Cc: public-script-coord@w3.org
Message-ID: <op.u8kto2uk64w2qv@annevk-t60>
On Sat, 20 Feb 2010 02:22:12 +0100, Maciej Stachowiak <mjs@apple.com>  
wrote:
> The other alternatives involve creating some parallel API, along one
> of the following lines:
>
> foo.style.topValue.px = 200
> foo.style.topPX = 200
> foo.styleValues.top.px = 200
>
> Of these options, I think the last one is probably the best, because
> it's easy to feature-test for from script. The only problem is that
> "styleValues" is kind of a bad name. I'm sure there are better
> possibilities though.

I guess we should do something like that then.

I personally think a new member on CSSStyleDeclaration would be better so  
we do not need to introduce a whole new series of accessors. Thoughts?


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Tuesday, 23 February 2010 10:50:20 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:02 UTC