W3C home > Mailing lists > Public > www-style@w3.org > February 2010

RE: [cssom] Defining getComputedStyle

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Fri, 12 Feb 2010 18:03:04 +0000
To: Anne van Kesteren <annevk@opera.com>, CSS WG <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E10CD7F20@TK5EX14MBXC111.redmond.corp.microsoft.com>
> On Wed, 03 Feb 2010 14:09:23 +0100, Anne van Kesteren
> <annevk@opera.com>
> wrote:
> >    http://dev.w3.org/csswg/cssom/#resolved-values


Small typo: 'psuedo-element'.

The first set of properties has no resolved value. I assume the implied rule is that shorthands don't get resolved ?

For the last two sets of properties - height...width and 'any other property - the resolved value either may or is the computed value. As the section begins with :

"However, the concept of "computed value" changed between revisions of CSS while the implementation of getComputedStyle() had to remain the same for compatibility with deployed scripts."

...I assume the computed value being returned here is the computed value as defined by CSS, not the one getComputedStyle() has to keep returning for backward compatibility ?

I expected the spec to define what getComputedStyle() returned but couldn't locate it. All I found was that :

"The getComputedStyle method MUST return a live CSSStyleDeclaration object that contains the computed style declaration block for elt..."

Shouldn't we define how that style declaration block is computed for completeness and coherence ? 





Received on Friday, 12 February 2010 18:03:41 GMT

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