W3C home > Mailing lists > Public > www-style@w3.org > October 2008

Re: [CSS21] Spaces, non-breaking spaces, ideographic spaces and the word-spacing property

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 29 Oct 2008 14:37:29 -0700
Message-ID: <4908D799.7030505@inkedblade.net>
To: Sylvain Galineau <sylvaing@microsoft.com>
CC: "www-style@w3.org" <www-style@w3.org>

Sylvain Galineau wrote:
> Per CSS 2.1 [1],
> "Word spacing affects each space (U+0020), non-breaking space (U+00A0), and ideographic space (U+3000) left in the text after the white space processing rules have been applied."
> The simple test case below shows current implementations disagreeing on which type of space word-spacing applies to. I just want to confirm the property does apply to all three spaces.
> <!doctype html>
> <html>
> <head>
>    <style type="text/css">
>         div { word-spacing: 100px; }
>    </style>
> </head>
> <body>
>         <p>Test passes if space between Xs is the same on each line</p>
>         <div id="testDiv">X&#12288;X</div>
>         <div id="testDiv">X&nbsp;X</div>
>         <div id="testDiv">X X</div>
> </body>
> </html>
> [1] http://www.w3.org/TR/CSS21/text.html#propdef-word-spacing

I'm quite certain it should affect NBSP. NBSP should behave
exactly as SP except for its line-breaking effects.

Based on Ambrose's reaction, we may need to re-evaluate whether
it applies to IDEOGRAPHIC SPACE.

Received on Wednesday, 29 October 2008 21:38:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:40 UTC