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

Hi Alex,


On Feb 1, 2012, at 7:56 PM, Alex Mogilevsky wrote:

I am not sure why wouldn’t ‘region-overflow’ apply to all regions.

[vh] Hum.. did you read 'not' where I wrote 'now'? Because all I was saying is that as currently defined, region-overflow only applies to the last region but with the change you propose, it would apply to all regions. So I think we are on the same page.

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?

[vh] yes.


Are you suggesting that there was a ‘nobreak’ value, ‘auto’ is not needed?

[vh] Yes.

What would the default be then, ‘break’?

[vh] Yes.

I think it would be fine, my preference always was that catch-all last region should be a rare case.

[vh] ok.


BTW, with this proposal, setting ‘nobreak’ on multiple regions may not be useful (all but the first one will be empty).

[vh] Right.

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?

[vh] Yes, but you lost me on the analogy with white-space:pre. Can you explain that more?

Thanks,
Vincent.


From: Vincent Hardy [mailto:vhardy@adobe.com]
Sent: Wednesday, February 01, 2012 8:20 AM
To: Alex Mogilevsky
Cc: www-style@w3.org<mailto: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).


Vincent.

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 Friday, 3 February 2012 16:40:53 UTC