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

Re: FW: NoWrap property

From: Robert O'Callahan <robert@ocallahan.org>
Date: Fri, 5 Dec 2008 00:30:27 +1300
Message-ID: <11e306600812040330u22a471ffs8bece9ec4d6022d@mail.gmail.com>
To: "Alex Mogilevsky" <alexmog@microsoft.com>
Cc: "www-style@w3.org" <www-style@w3.org>
In Gecko we follow two principles:
1) Break opportunities induced by white space are entirely governed by the
value of the 'white-space' property on the enclosing element. So, spaces
that are white-space:nowrap never create break opportunities.
But 2) When a break opportunity exists between two non-white-space
characters, e.g. between two Kanji characters, we consult the value of
'white-space' for the nearest common ancestor element of the two characters
to decide if the break is allowed.

I think these principles are reasonably intuitive and useful. The first
principle explains our rendering of your testcases. In your third testcase,
the space after the nowrap span is collapsed away but we still allow it to
create a linebreak opportunity, since it's white-space:normal.

"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
Received on Thursday, 4 December 2008 11:31:09 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:32 UTC