Re: W3C test html5-002: where did the spaces go?

On 03/29/2012 04:33 PM, Eric Muller wrote:
> Consider just the first case:
>
> <div  dir="ltr">&#x5d0;  &gt;  <bdi><br/></bdi>  &gt;  &#x5d1;...</div>
>
> The expected output is described as:
>
> <  &#x5d0;
> &#x5d1;  <...
>
> Where did the spaces around the <bdi> element go? where they collapsed because they are next to the <br/>? That's the only
> explaination I see for the one after, since it would otherwise be between the < and the ..., i.e. not at the beginning or end
> of a line.

Collapsible spaces are removed at the beginning and ends of lines.
See http://www.w3.org/TR/css3-text/#white-space-rules

~fantasai

Received on Friday, 30 March 2012 18:16:06 UTC