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

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 UTC