W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2008

Re: getComputedStyle results

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 30 Mar 2008 22:22:00 -0500
Message-ID: <47F058D8.30608@mit.edu>
To: kagupta@rim.com, DOM mailing list <www-dom@w3.org>

> The getComputedStyle return value is already well defined to be the 
> "computed" values as described in 
> http://www.w3.org/TR/CSS21/cascade.html#computed-value.

That definition postdates the definition of getComputedStyle.  The "computed 
style" getComputedStyle references is the CSS2 one.  Since UAs currently on the 
market do not implement the CSS2 computed style (which is neither equivalent to 
the CSS2.1 computed style nor quite to the CSS2.1 used style, iirc), it's 
actually not that clear what getComputedStyle should be doing.

> Yes, computed values are well defined, but DOM 2 StyleSheets defines 
> getComputedStyle to return absolute (or used) values

The term "absolute value" only makes sense for lengths.  I don't believe DOM 2 
StyleSheets uses the term "used style" anywhere (which makes sense, since that 
term postdates the spec in question).

-Boris
Received on Monday, 31 March 2008 03:22:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:59 GMT