W3C home > Mailing lists > Public > www-style@w3.org > September 2007

Re: Further clarification regarding white-space collapse needed

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 20 Sep 2007 11:36:53 -0500
Message-ID: <46F2A1A5.7090103@mit.edu>
To: Anne van Kesteren <annevk@opera.com>
CC: www-style@w3.org, whitelynx@operamail.com

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 &#x202E; C B&#x202C;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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:52 GMT