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

RE: [css3-regions] region-overflow:nobreak

From: Alex Mogilevsky <alexmog@microsoft.com>
Date: Wed, 1 Feb 2012 17:56:49 +0000
To: Vincent Hardy <vhardy@adobe.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <D51C9E849DDD0D4EA38C2E539856928412E2AEDB@TK5EX14MBXC218.redmond.corp.microsoft.com>
I am not sure why wouldn't 'region-overflow' apply to all regions. Only 'auto' actually needs to know that it is the last region, otherwise 'break' or 'nobreak' tell exactly what to do for current region, right?

Are you suggesting that there was a 'nobreak' value, 'auto' is not needed? What would the default be then, 'break'? I think it would be fine, my preference always was that catch-all last region should be a rare case.

BTW, with this proposal, setting 'nobreak' on multiple regions may not be useful (all but the first one will be empty). But... if forced breaks would still work with 'nobreak', or if there was another option 'pre' (like "whitespace:pre") - then it would be easy to have regions that take one element at a time:

*         Elements in the flow have break-after:region

*         Regions have "region-overflow:pre"

*         Regions can be autosized (because for each region, content range is predetermined)
That is what you want with autosized regions, right?

From: Vincent Hardy [mailto:vhardy@adobe.com]
Sent: Wednesday, February 01, 2012 8:20 AM
To: Alex Mogilevsky
Cc: www-style@w3.org
Subject: Re: [css3-regions] region-overflow:nobreak

Hi Alex,

That would also mean that the region-overflow would now apply to all regions, and not only the last one, as it does currently. In that case, shouldn't we have two values: 'break' and 'nobreak' that apply to all regions. 'break' means break the flow and, if there are more regions, continue to flow. 'nobreak' means that the remainder of the flow is consumed by the current region which will accomodate as much of the content as it can (which can be useful if we get height:auto working).


On Feb 1, 2012, at 2:47 AM, Alex Mogilevsky wrote:

Currently 'region-overflow' has two values - 'auto' and 'break', which technically are enough for what it defines.

However what if it had an explicit option of 'nobreak'? It would do exactly what 'auto' does on last region but... it would also prevent that region from ever being linked. That may be useful when defining auto-sizing regions (which will want to be either single-region flows or the last regions in flow)...
Received on Wednesday, 1 February 2012 17:57:49 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:10 UTC