Re: Further clarification regarding white-space collapse needed

Anne van Kesteren wrote:
> http://www.w3.org/TR/CSS21/syndata.html#whitespace defines whitespace.

That doesn't answer the question that was asked, which was what you DO with the 
whitespace.

The question that was asked is answered, however, by 
http://www.w3.org/TR/CSS21/text.html#white-space-model second paragraph, which says:

   "For each inline element (including anonymous inlines elements),
    the following steps are performed, treating bidi formatting
    characters as if they were not there:"

That last clause is the answer.  Note that this whole part of the algorithm 
takes place before BiDi reordering.  Therefore in the original example:

   A ‮ C B‬D

rule 4 item 2 means that the space before 'C' is removed and hence after BiDi 
reordering you get:

   A B CD

as in Gecko.

-Boris

Received on Thursday, 20 September 2007 16:38:50 UTC