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

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

From: Alan Stearns <stearns@adobe.com>
Date: Tue, 26 Apr 2016 00:19:32 +0000
To: "Belov, Charles" <Charles.Belov@sfmta.com>, www-style list <www-style@w3.org>
Message-ID: <19B3A48E-DF15-4216-81BF-E54096525B14@adobe.com>
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?

Thanks,

Alan
Received on Tuesday, 26 April 2016 00:20:07 UTC

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