W3C home > Mailing lists > Public > www-style@w3.org > June 2008

Re: [CSS 2.1] static position of an absolutely positioned element with auto-offsets

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 10 Jun 2008 15:10:06 -0700
Message-ID: <484EFBBE.2090707@inkedblade.net>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: "www-style@w3.org" <www-style@W3.ORG>

Boris Zbarsky wrote:
> 
> fantasai wrote:
>> Alex, do we need to make a clarification here to avoid the IE<8 
>> interpretation? I would have expected that the "if its 'position'
>> property had been 'static'" bit would require guessing the position
>> using the specified (not used) display property.
> 
> Note that the latter is what Gecko implements, and is not necessarily 
> equivalent to the former.
>
> Consider these styles:
> 
>   display: inline;
>   float: left;
>   position: absolute;
> 
> If the position were static, computed (and used) display would be 
> "block", while  specified display is "inline".
> 
> See https://bugzilla.mozilla.org/show_bug.cgi?id=237770 for some 
> discussion on this.
> 
> Explicitly saying that the specified value should be used here makes 
> things clearer, though it's not quite right if the specified value is 
> "inherit" or "initial".

My take from that bug is that both 'position' and 'float' are ignored
(set to 'static' and 'none' respectively) when finding the static position.
Is that correct?

~fantasai
Received on Tuesday, 10 June 2008 22:10:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:07 GMT