W3C home > Mailing lists > Public > www-style@w3.org > January 2013

Re: [CSS21] absolute position with left,top:auto

From: Anton Prowse <prowse@moonhenge.net>
Date: Mon, 07 Jan 2013 17:37:35 +0100
Message-ID: <50EAF9CF.1000808@moonhenge.net>
To: www-style mailing list <www-style@w3.org>
CC: ktf.kim@samsung.com
On 28/12/2012 07:37, Kyungtae Kim wrote:
>
> In the "absolutely positioned box in the relatively positioned box" example on
> 9.8.4,[1]
>
>    if the top and left were 'auto', where the box should be positioned?
>
> As I tested, the Chrome (and the other WebKit-based browsers) put it on the same
> position with the case that the box has a normal position,
> but the Firefox put it on the top left position of the containing block (same
> position with top:0px,left:0px).

> [1] http://www.w3.org/TR/CSS2/visuren.html#comp-abspos

Hi,

For me, Firefox 17 also (correctly) puts the top-left corner of the 
absolutely positioned box at its "static position" (the "normal" 
position which you mention).  It certainly doesn't put it at the top 
left of the containing block.

Perhaps you had other style rules affecting your layout?

Cheers,
Anton Prowse
http://dev.moonhenge.net
Received on Monday, 7 January 2013 16:38:07 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:04 GMT