W3C home > Mailing lists > Public > www-style@w3.org > July 2012

Re: [CSS2.1][CSSOM] "Used Value" and "auto"

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 12 Jul 2012 08:17:49 -0400
Message-ID: <4FFEC06D.8020002@mit.edu>
To: www-style@w3.org
On 7/12/12 2:35 AM, Mike Sherov wrote:
> I'm working with Ryosuke Niwa on correcting the behavior of
> getComputedStyle(elem).top/left/right/bottom

Note that right now the current CSSOM draft says that for 
top/left/right/bottom the computed value is returned, not the used value.

So if you want to convert percentages to pixels, you also need to change 
the definition of resolved value to move top/left/right/bottom into the 
used value bucket.

But yes, "auto" is never a used value for top/left/right/bottom for 
positioned things, as far as I can tell.  Though CSS2.1 sure could be 
clearer about used values in general...

Received on Thursday, 12 July 2012 12:18:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:18 UTC