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

Re: CSS 2.1 text-align:justify issue [CSS2.1] [css3-text]

From: L. David Baron <dbaron@dbaron.org>
Date: Mon, 18 Aug 2008 08:52:30 +0100
To: fantasai <fantasai.lists@inkedblade.net>
Cc: robert@ocallahan.org, Bert Bos <bert@w3.org>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <20080818075230.GA29894@pickering.dbaron.org>

On Thursday 2008-08-14 15:32 +0100, fantasai wrote:
> Robert O'Callahan wrote:
>> On Sat, Jul 26, 2008 at 2:26 AM, Bert Bos <bert@w3.org  
>> <mailto:bert@w3.org>> wrote:
>>
>>     In 16.2, replace
>>
>>        If the computed value of text-align is 'justify' while the computed
>>        value of white-space is 'pre' or 'pre-line', the actual value of
>>        text-align is set to the initial value.
>>
>>     with
>>
>>        If the computed value of 'text-align' is 'justify' and the computed
>>        value of white-space is 'pre', 'pre-line' or 'pre-wrap', then the
>>        actual value of 'text-align' is set to the initial value.
>>
>>
>> This seems unnecessary, why not just get rid of it?
>
> It makes a difference for
>
> <p style="text-align: justify; white-space: pre">Some text here
> <span style="white-space: normal">Some more text here</span></p>

But it doesn't even solve the problem that it's attempting to solve,
since there are still cases where you have to justify preformatted
text, such as:

<p style="text-align: justify"><span style="white-space pre">Some
text here</span></p>

The spec should just say which values of 'white-space' forbid spaces
from being stretched for justification.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Monday, 18 August 2008 07:53:13 GMT

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