Re: [css-text] pre-wrap / pre-wrap-auto

>> My opinion is that we need at least the new behavior ("b"). Whether it can also work for the use cases served by the current behaviors, I have a less strong opinion about. The NY F2F concluded that it mostly could as long as we made the new pre-wrap-auto value available for UAs to put in the UA stylesheet, but I'm fine going the other way, and have behavior "b" be an opt-in.
>> 
> It depends on what behavior you want, but if "b" is what you want, I think it breaks existing use cases too much that it should be opt-in.

I'm ok with that (and it is what I initially proposed).

> But then this gets even harder to understand for me...so if you have:
> AA_AA_A
> assume "_" is a space and the width is 5, you want:
> AA_AA_
> A
> (the trailing space of the 1st line overflows)
> 
> but if you have:
> AAAAA_A
> you want:
> AAAAA
> _A
> (the space wraps)?

No, I do not expect the space to wrap in the second but not the first example.

Can I change your example a little for behavior "b"? It makes things easier to explain.
I'm switching to AA_AA__A and AAAAA__A (same as you, but with 2 spaces rather than one before the last A).

behavior "d" gets you

|AA_AA|__
|A    |

and

|AAAAA|__
|A    | 

Or with width 6:

|AA_AA_|_
|A     |

and

|AAAAA_|_
|A     | 

Behavior "b" with width 6 gets you:

|AA_AA_|
|_A    |

and

|AAAAA_|
|_A    |


Still in mode "b width width 5, we're in a special case, and we need to know if we allow wrapping before the first space or not. I think we should, but you and Elika have said (if I understood you correctly) that you don't, and I do not have a particularly strong opinion on that one. If we do allow wrapping before the first space, we'd get this:

|AA_AA|
|__A  |

and

|AAAAA|
|__A  |

If we don't, we get this on the first example:

|AA_  |
|AA__A|

and on the second example we're kind of stuck, so we probably have to break before the space anyway:

|AAAAA|
|__A  |

 - Florian

Received on Friday, 13 November 2015 06:41:51 UTC