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: Fri, 13 Jul 2012 11:53:54 -0400
Message-ID: <50004492.2010308@mit.edu>
To: www-style@w3.org
On 7/13/12 7:56 AM, √ėyvind Stenhaug wrote:
> On Thu, 12 Jul 2012 21:46:56 +0200, Glenn Adams <glenn@skynav.com> wrote:
>
>> In contrast, the following length valued properties that accept 'auto'
>> have
>> a distinct used value when display is not none:
>>
>> bottom
>> height
>> left
>> right
>> top
>> width
>
> Not quite, I think. I don't see any part of CSS 2.1 that defines the
> used value of bottom/left/right/top for non-positioned elements.

Indeed.  In Gecko, the used value (and the return value of 
getComputedStyle) for non-positioned elements for those properties is 
the specified value.

-Boris

P.S.  Also note that the used value computation is somewhat different in 
Gecko for relatively positioned and absolutely positioned elements, 
since those use the offsets is somewhat different ways.
Received on Friday, 13 July 2012 15:54:23 GMT

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