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

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

From: Koji Ishii <kojiishi@gmail.com>
Date: Tue, 10 Nov 2015 02:02:06 -0800
Message-ID: <CAN9ydbXFL3VcLQW2+b6-4zNWFqABzgJVyTHnadpyNY6WBwLhVA@mail.gmail.com>
To: Florian Rivoal <florian@rivoal.net>
Cc: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
2015-11-09 20:46 GMT-08:00 Florian Rivoal <florian@rivoal.net>:

>
> But anyway, yes, adding a switch was my initial proposal, and the way I
> recall the discussion, the conclusion was that
> if that's the behavior we want, let's have it by default rather than
> opt-in.
>

If the new behavior does not serve use cases current behavior does, it
should be opt-in.

> Two things I think we would need consensus on:
>
> 1. Assuming this is a code editor use case, I still believe any editors
> that wraps before space also wraps in the mid of words. Visual Studio,
> NotePad, TextEdit do so. On the other hand, Atom does not wrap in the mid
> of words but does not wrap before space either. Having an example of "wrap
> before space but not mid of words" would be helpful if you want this
> combination.
>
>
> Agree on having 2 different behaviors. I'm proposing to trigger the first
> one with overflow-wrap: break-word, and the other one with a new value,
> overflow-wrap: break-spaces.
>

Can I confirm, are you proposing two new values, one for mid-of-words and
the other for before-spaces?

I might not be clear enough, sorry about that, what I wanted to say was
that, isn't one switch to turn both on enough? Do we have separate use
cases where authors want to turn it on separately?

2. It may depends on above, but it feels me that the value should belong to
> word-break rather than white-space.
>
>
> I think it goes into overflow-wrap (aka word-wrap) rather than word-break,
> but open for discussion.
>

overflow-wrap is only when overflow occurs (i.e., there's no other break
opportunities in the line,) so what you want should be word-break.

/koji
Received on Tuesday, 10 November 2015 10:02:53 UTC

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