W3C home > Mailing lists > Public > www-style@w3.org > March 2011

Re: [CSS21] top margin edge - hence static position - is not well-defined

From: Alan Gresley <alan@css-class.com>
Date: Mon, 28 Mar 2011 04:11:20 +1100
Message-ID: <4D8F6FB8.7070909@css-class.com>
To: Anton Prowse <prowse@moonhenge.net>
CC: "www-style@w3.org" <www-style@w3.org>
On 28/03/2011 2:45 AM, Anton Prowse wrote:
> On 27/03/2011 17:32, Alan Gresley wrote:
>> On 28/03/2011 12:31 AM, Anton Prowse wrote:

>>> <div style="border-bottom:1px solid; margin-bottom:20px"></div>
>>> <div style="position:absolute; width:100px; height:100px; background:
>>> yellow; margin-top:10px"></div>
>>> <div style="border-top:1px solid; margin-top:20px"></div>
>>>
>>> There's no interop on this issue, but that's because Fx and IE don't
>>> perform tentative margin collapsing at all for abspos in order to
>>> determine their static position.
>>
>>
>> This is since the margins of elements with position absolute do not
>> collapse [1] 8.3.1.
>
> Alan, we're talking about the calculation of the _static position_ of
> absolutely positioned elements.


I know, the static position is seen when it is static (in normal flow). 
Remove position: absolute and you have it's static position. This is 
what a browser has to work out. What it's position would be if it was 
position: static.


-- 
Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
Received on Sunday, 27 March 2011 17:11:56 GMT

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