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: Thu, 14 Aug 2008 15:32:22 +0100
Message-ID: <48A441F6.9080104@inkedblade.net>
To: robert@ocallahan.org
CC: Bert Bos <bert@w3.org>, "www-style@w3.org" <www-style@w3.org>

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>

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

>        If an element has a computed value for 'white-space'
>        of 'pre', 'pre-line' or 'pre-wrap', then neither the glyphs in that
>        element nor the spaces between them must be stretched or shrunk for
>        the purposes of justification.
> Sounds good, but why include 'pre-line' there? IMHO spaces in pre-line 
> text should be able to stretch for justification.

Good point. That should not be there!

Received on Thursday, 14 August 2008 14:33:11 UTC

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