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

Re: [css3-text] feedback on 'word-break: keep-all;'

From: Brad Kemper <brad.kemper@gmail.com>
Date: Thu, 3 May 2012 08:17:23 -0700
Message-Id: <D22B1171-25FA-458E-B198-A002A153465A@gmail.com>
Cc: "www-style@w3.org" <www-style@w3.org>
To: Jonathan Kew <jfkthame@googlemail.com>

On May 3, 2012, at 7:55 AM, Jonathan Kew <jfkthame@googlemail.com> wrote:

>> Personally opinions here only, but breaking at hyphens
>> indiscriminately cannot be right. Even in English there are many
>> scenarios where indiscriminate breaking at hyphens is intuitively
>> wrong (short prefixes like e- or co-, phone numbers, unit or street
>> numbers in addresses, and so on), so I doní»t know why IE does that.
> 
> I think it's reasonable regard hyphen as an "explicit break opportunity" for the purposes of keep-all. It's widely expected that a line-break is permitted after hyphen; if this is not wanted, the user needs to take explicit action to prevent it (just as with inter-word spaces).
> 
> Use U+2011 NON-BREAKING HYPHEN for hyphens that are not supposed to offer a break opportunity.

That's not the world we live in. In the real world, normal hyphens are used everywhere, and most people creating content don't even know that a non-breaking hyphen exists, or how to type it. And we still have to style that content. 
Received on Thursday, 3 May 2012 15:18:05 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:53 GMT