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) ~fantasaiReceived on Thursday, 7 February 2008 20:35:26 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 11 September 2008 23:29:04 GMT