W3C home > Mailing lists > Public > www-style@w3.org > May 2012

Re: [css3-text] overflow-wrap vs word-wrap

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 30 Apr 2012 19:07:33 -0700
Message-ID: <4F9F4565.5060307@inkedblade.net>
To: www-style@w3.org
On 04/29/2012 03:39 PM, Kang-Hao (Kenny) Lu wrote:
> By the way, I would like to ask a dumb question here: if we can rename
> 'word-wrap', why can't we fold this property into a value of
> 'word-break', say, 'word-break: overflow;'?
> It's been a year and half since the first time I read this spec, and I
> am still very often confused by these various line breaking properties.
> Correct me if I am wrong, there are four right?
> * 'line-break'
> * 'word-break'
> * 'overflow-wrap'
> * 'text-wrap'
> Am I missing something?

Regardless of whether it's a good idea, 'text-wrap' and 'overflow-wrap'
can't be combined because historically 'white-space' and 'word-wrap'
are independent.

I tried to combine 'line-break' and 'word-break', but couldn't make it
work very well. There apparently isn't a single scale of strictness --
they combine in all possible ways. They're also implemented unprefixed
in IE since v6.

The -wrap properties determine whether you're allowed to soft-wrap,
whereas the -break properties determine a legitimate break point is.
So there is a logic to that distinction.

Received on Tuesday, 1 May 2012 02:08:04 UTC

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