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

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

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 18 Aug 2008 13:38:44 +0100
Message-ID: <48A96D54.5020306@inkedblade.net>
To: fantasai <fantasai.lists@inkedblade.net>, robert@ocallahan.org, Bert Bos <bert@w3.org>, "www-style@w3.org" <www-style@w3.org>

L. David Baron wrote:
> 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.

That's handled by the new paragraph in Bert's proposal.
   http://lists.w3.org/Archives/Public/www-style/2008Jul/0532.html

~fantasai
Received on Monday, 18 August 2008 12:39:27 GMT

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