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

Re: [CSS2.1 position:relative] Blocks Contained in Inline Relative.

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 07 Feb 2008 12:35:22 -0800
Message-ID: <47AB6B8A.1080901@inkedblade.net>
To: Alex Mogilevsky <alexmog@exchange.microsoft.com>
CC: "www-style@w3.org" <www-style@w3.org>

Alex Mogilevsky wrote:
> When a block with a static position is contained in an inline block with 
> “position:relative”, should the relative offset apply to it?

You mean contained in an inline block with an ancestor inline with "position: relative",
I assume? 10.1 says pretty clearly that the inline block is the containing block for
its child blocks.

> 9.3.1 http://www.w3.org/TR/CSS21/visuren.html#choose-position
> Doesn’t have any special cases for blocks within relative inlines. And 
> position doesn’t inherit.
> 10.1. http://www.w3.org/TR/CSS21/visudet.html#containing-block-details
> Clearly says that the relative inline is clearly not the containing 
> block for nested blocks.

No, the inline block is.

> A case can be made either way:
> a)      Nested blocks should be offset because they are inside the 
> offset inline element, and the position offset applies to content, just 
> as text decoration on a block propagates to its inline childeren.
> b)      Nested blocks should not get the relative offset because their 
> inline ancestor is not their containing block.
> Firefox and IE7 do (a); Safari and Opera do (b).
> What do we think is the correct behavior?


Received on Thursday, 7 February 2008 20:35:26 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:33 UTC