Re: FW: NoWrap property

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.

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