Re: [css3-regions] OM for region content overflow

On 5/18/11 5:23 PM, "Alex Mogilevsky" <alexmog@microsoft.com> wrote:

>For dynamic operations with regions, it is important to know if content
>fits in the current set of regions or if additional regions need to be
>generated.
>
>An obvious  way to expose that would be a property on region (on
>HTMLElement), something like this
>
>    element.regionContentOverflow
>
>with values like
>    (A) "there is more content for next region"
>    (B) "there is content here and it all fits"
>    (C) "this region is empty, content ended in one of previous regions"
>and possibly
>    (D) "this is not a region"
>
>What would be good names for this property and values? Here are some
>ideas:
>
>    element.regionOverflow = overflow | no-overflow | underflow |
>not-a-region
>
>    element.regionFit = break | fit | empty | none
>
>    element.regionState = continues | data-end | empty | not-linked
>
>    element.regionFlow = continues | completed | empty | not-linked
>
>    element.regionEnd = before| inside| after
>
>I don't think any of these is a clear winner. So far my favorite is this:
>
>    element.regionFit = break | fit | empty | none
>
>Have better ideas?

I liked the proposal you had in a previous email for the property name:

Element.contentOverflow

For the property values, I prefer a mix of what you propose:

overflow | fit | empty

I am not sure we need the 'not-a-region' value because in case of
non-region element, we could specify that the contentOverflow value is
'fit'.

Vincent

Received on Thursday, 19 May 2011 01:33:54 UTC