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

.../contributors/gtalbot/submitted/white-space-007.html

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:

X-X-X-X-X-X-X-X-X-X

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.

--
Thanks,
Arron Eicholz

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