Re: Containing block for absolutely positioned elements

/Stanimir Stamenkov/:

> <http://www.w3.org/TR/CSS21/visudet.html#containing-block-details>:
> 
>> 4. If the element has 'position: absolute', the containing block is 
>> established by the nearest ancestor with a 'position' of 'absolute', 
>> 'relative' or 'fixed', in the following way:
>> [...]
>>    2. Otherwise, the containing block is formed by the padding edge 
>> of the ancestor.
> 
> ... the containing block edge 
> is also incorrect. The edge of the containing block which Amaya 
> establishes is the left and right border edge, and the top and 
> bottom margin edge of the ancestor which establishes the containing 
> block, while it should be:
> 
>> ... the containing block is formed by the padding edge of the 
>> ancestor.

Amaya 9.52: the containing block is formed by the margin edge [1] 
(see the attached example) while it must be the padding edge [2], 
like I've pointed previously.

[1] http://www.w3.org/TR/CSS21/box.html#margin-edge
[2] http://www.w3.org/TR/CSS21/box.html#padding-edge

-- 
Stanimir

Received on Sunday, 22 October 2006 11:08:48 UTC