W3C home > Mailing lists > Public > www-style@w3.org > November 2015

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

From: Florian Rivoal <florian@rivoal.net>
Date: Fri, 13 Nov 2015 15:41:19 +0900
Cc: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Message-Id: <27D887C4-136E-43E2-B10A-7CD4FF329F2E@rivoal.net>
To: Koji Ishii <kojiishi@gmail.com>

>> 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:
> 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:
> you want:
> _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

|A    |


|A    | 

Or with width 6:

|A     |


|A     | 

Behavior "b" with width 6 gets you:

|_A    |


|_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:

|__A  |


|__A  |

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

|AA_  |

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

|__A  |

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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:58 UTC