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 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:39 UTC