- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Thu, 07 Feb 2008 12:35:22 -0800
- 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? (a) ~fantasai
Received on Thursday, 7 February 2008 20:35:26 UTC