W3C home > Mailing lists > Public > www-style@w3.org > April 2016

Re: [css-text] Need for something between keep-all and break-all

From: Brad Kemper <brad.kemper@gmail.com>
Date: Mon, 25 Apr 2016 19:26:02 -0700
Cc: "Belov, Charles" <Charles.Belov@sfmta.com>, www-style list <www-style@w3.org>
Message-Id: <4809CA38-954A-42EA-B5EB-F2FDFC2358BA@gmail.com>
To: Alan Stearns <stearns@adobe.com>

> On Apr 25, 2016, at 5:19 PM, Alan Stearns <stearns@adobe.com> wrote:
>> On 4/22/16, 5:45 PM, "Belov, Charles" <Charles.Belov@sfmta.com> wrote:
>> With regard to CSS Text Module Level 3, 5.3. Breaking Rules for Letters: the ¡®word-break¡¯ property https://www.w3.org/TR/css-text/#word-break-property
>> I am looking for something between keep-all and break-all, perhaps when-needed or too-wide. 
>> For example, given the following text within a single HTML DOM element that is wide enough to display several short words but is not wide enough to display the URL shown:
>> Short words would follow keep-all rules but if I put an URL (which is actually not a link on the web page but rather for someone to copy and paste) such as http://www.example.com/1251584598235089175821578192578215871285724587124571289571285718245912571985712458714589218571957121545891258791258917592185719285721857123412548972434872498724981724894389123574128954.ics in the middle of them I want that to follow break-all rules instead.
> Shouldn¡¯t this be solved by adding an inline element that contains the URL, and styling that element to break-all?

No. I'm usually styling someone else's HTML. And it's usually a much bigger deal to get someone to rewrite all the pages of the site, when that's even remotely possible, than it is to change the CSS in a shared style sheet. 
Received on Tuesday, 26 April 2016 02:26:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:02 UTC