W3C home > Mailing lists > Public > www-style@w3.org > September 2009

Re: Proposal: getStyleAs(property, primitiveValue)

From: Řyvind Stenhaug <oyvinds@opera.com>
Date: Wed, 23 Sep 2009 19:38:45 +0200
To: www-style <www-style@w3.org>
Message-ID: <op.u0p0mvh4ru61ud@oyvinds-desktop>
On Tue, 22 Sep 2009 18:27:42 +0200, Garrett Smith <dhtmlkitchen@gmail.com>  
wrote:

> * document.defaultView.getComputedStyle
>   * Too verbose. The defaultView is unrelated to the Element (the DOM
> spec says: "a computed style is related to an Element node").

Isn't this somewhat circular, since document is found in AbstractView? Or  
are there any browsers that need document.defaultView.getComputedStyle  
instead of just getComputedStyle?

> A corresponding method to set a value would not seem to be necessary,
> as any value could be set with:
>
> x.style.color = "papayawhip";

Well, not if there's an !important color declaration somewhere that  
affects x.

-- 
Řyvind Stenhaug
Core Norway, Opera Software ASA
Received on Wednesday, 23 September 2009 17:39:37 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:21 GMT