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

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

From: Robert O'Callahan <robert@ocallahan.org>
Date: Fri, 15 Aug 2008 15:33:15 +1200
Message-ID: <11e306600808142033j793e9ab7ncd3f0e86dbb95c28@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: "Bert Bos" <bert@w3.org>, "www-style@w3.org" <www-style@w3.org>
On Fri, Aug 15, 2008 at 2:32 AM, fantasai <fantasai.lists@inkedblade.net>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>
>

Right. So it changes behaviour, but why is that behaviour change necessary?
I see no fundamental reason why the spaces in the span should not be
stretchable.

BTW, we need testcases for this issue. Do you have any handy?


Not for this exact issue, no.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
Received on Friday, 15 August 2008 03:33:53 GMT

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