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

RE: [css3-regions] issue: is first region initial containing block

From: Alex Mogilevsky <alexmog@microsoft.com>
Date: Wed, 8 Feb 2012 09:28:45 +0000
To: Brad Kemper <brad.kemper@gmail.com>, Vincent Hardy <vhardy@adobe.com>
CC: Anton Prowse <prowse@moonhenge.net>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <D51C9E849DDD0D4EA38C2E539856928412E4A782@TK5EX14MBXC214.redmond.corp.microsoft.com>
> From: Brad Kemper [mailto:brad.kemper@gmail.com]
> Sent: Tuesday, February 07, 2012 6:34 PM
> 
> What it the purpose of this restriction? If authors wants that behavior, they can
> just set 'position:relative' on the first block. Why must it be prescribed as a
> containing block?

Set position:relative on first region or root element of named flow?

Both may work sometimes but not quite.

If first region is position:relative and it is the nearest positioned ancestor of absolute positioned element in named flow, positioned content will be literally relative to the first region, not in the fragmented flow. Something positioned at "top:<first-region-height>" will be under the first region, not in second region (assuming that is what would happen in paged media -- defining that precisely is a separate issue).

If the idea is to set position:relative to root block of named flow - that's not even possible. There is no root block, or at best it is anonymous.

It *can* be defined that if first region is positioned it becomes ICB, but it eliminates some behavior options, specifically the behavior I described above.

Alex
Received on Wednesday, 8 February 2012 20:02:35 GMT

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