W3C home > Mailing lists > Public > www-style@w3.org > December 2008

Re: FW: NoWrap property

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 10 Dec 2008 14:20:25 +1300
Message-ID: <11e306600812091720y218649ebj7046dc62168a2f8d@mail.gmail.com>
To: "Bjoern Hoehrmann" <derhoermi@gmx.net>
Cc: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>

On Wed, Dec 10, 2008 at 2:09 PM, Bjoern Hoehrmann <derhoermi@gmx.net> wrote:
>
> * fantasai wrote:
>>If the author wanted the entire unit to be non-breakable, then he
>>could have wrapped the whole thing in <nowrap>. Since there is
>>a break in the <nowrap>, the point between the two <nowrap> elements
>>is outside the <nowrap>. A break opportunity there should therefore
>>not be suppressed. Otherwise there is no way to express layouts that
>>require grouping this text run and that text run but allowing a break
>>between them.
>
> That would seem to imply, if between two runs you normally do not wrap,
> you cannot make it wrap. That seems odd, but even so it should be quite
> possible to come up with some marker for a wrapping point, say,
>
>  element { line-break-after: allow }
>  ::after { content: break-opportunity }

This would be possible with CSS3's text-wrap:unrestricted, combined
with fantasai's (and Gecko's) interpretation of white-space:nowrap
(which maps to text-wrap:none). Just write

.nowrap { text-wrap:none; }
.wrap { text-wrap:unrestricted; }
<span class="wrap"><span class="nowrap">abc</span><span
class="nowrap">def</span></span>

Rob
-- 
"He was pierced for our transgressions, he was crushed for our
iniquities; the punishment that brought us peace was upon him, and by
his wounds we are healed. We all, like sheep, have gone astray, each
of us has turned to his own way; and the LORD has laid on him the
iniquity of us all." [Isaiah 53:5-6]
Received on Wednesday, 10 December 2008 01:21:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:17 GMT