W3C home > Mailing lists > Public > public-css-testsuite@w3.org > January 2010

White space case incorrect (gtalbot/submitted/white-space-007.html)

From: Arron Eicholz <Arron.Eicholz@microsoft.com>
Date: Thu, 7 Jan 2010 21:52:18 +0000
To: "css21testsuite@gtalbot.org" <css21testsuite@gtalbot.org>
CC: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
Message-ID: <651D2A831D17C040B828D62270386CE9299BAB1E@TK5EX14MBXC132.redmond.corp.microsoft.com>

Within section 16.6.1 the rules that apply are:

"Any text that is directly contained inside a block element (not inside an inline element) should be treated as an anonymous inline element."

"For each inline element (including anonymous inline elements), the following steps..."

Rules 1, 2 & 3 apply to this situation but there are no modifications to the text or formatting from those rules.

Rule 4.2 is where the issue is with user agents and the test case itself.
Rule 4.2 states: "any space (U+0020) following another space (U+0020) - even a space before the inline, if that space also has 'white-space' set to 'normal', 'nowrap' or 'pre-line' - is removed.".

Here is how the case is constructed assuming that hyphen (-) and underscore (_) are spaces. For readability hyphen (-) represents the no wrapped space and underscore (_) represents the inline anonymous space.

X-_ X-_ X-_ X-_ X-_ X-_ X-_ X-_X -_X

Rule 4.2 says that the following space (_) is removed. Per Rule 4.2 the collapsing should be:


It seems that Firefox and Safari are removing the (-) space. The 4.2 clause says that the following space (_) needs to be removed. IE seems to be properly, per the current rules, remove the (_) space.

Now we have an entire line that has no potential for breaking per the Line breaking Properties in the Unicode Standard Annex #14.

This means, in the test case, the orange line should not wrap and should extend way beyond the blue box.

Arron Eicholz
Received on Thursday, 7 January 2010 21:52:52 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:19 UTC