Re: [css-overflow] overflow vs continue (Was: [css-overflow] processing model of continue:discard)

On Wed, Mar 18, 2015 at 5:07 AM, Florian Rivoal <florian@rivoal.net> wrote:
>> On 14 Mar 2015, at 17:51, Brad Kemper <brad.kemper@gmail.com> wrote:
>> [...] but I still think that these should all be values of 'overflow' instead of a new property. Then region boxes (those using a valid 'flow-from') get the computed value of 'fragments' (or 'clone' if that's the new name) for overflow if they are not last box. If they are the last box of the region chain then they get the specified value for overflow (which might be authored as 'overflow: discard' and have the behavior you describe above for things that aren't otherwise fragmentainors).
>>
>> Then we don't really need a new 'auto' value, and we no longer need 'region-fragment'. This reduces three properties down to one, and simplifies the conceptual load.
>>
>> We'd have to say how -x and -y overflow works with something overflowing in a logical direction (as 'overflow: fragments | discard | paginate' only applies to the block stacking direction), but IMO we should really do that anyway.
>
> The overflow property seemed to be the obvious place for this, which is why overflow fragments/clone and page were initially specified this way, but it turns out it doesn't work that well.
>
> Overflow and fragmentation are different.
>
> Figure 5 in http://dev.w3.org/csswg/css-regions/#the-region-fragment-property gives a hint. Even if you fragment, you may have to deal with overflow, and want to use the overflow property to control what happens then. Here's a little demo showcasing that controlling overflow and controlling fragmentation are orthogonal (view in Firefox or Presto Opera).
>
> http://jsbin.com/hubiri/1/watch?output
>
> Also, as you point out, the fragmentation values, if applied through overflow, are essentially about what happens in the block direction, which is a poor match for a property that is split into an -x/-y longhands.
>
> These things can be worked around, and we could shoehorn both concept into a single property, but the result would be convoluted or limiting or both, and keeping separate things separate keeps the model simple, which is more important than keeping the property count low.

Agreed that these two concepts are indeed separate.  dbaron pointed
out in the telcon a pretty clear distinction - 'continue' is about
*layout* overflow, while 'overflow' is about *paint* overflow.

~TJ

Received on Wednesday, 18 March 2015 20:58:28 UTC