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

CSS 2.1 text-align:justify issue

From: Robert O'Callahan <robert@ocallahan.org>
Date: Mon, 23 Jun 2008 16:20:54 +1200
Message-ID: <11e306600806222120y4c1bde41ue639b447a0005522@mail.gmail.com>
To: "www-style@w3.org" <www-style@w3.org>
http://www.w3.org/TR/CSS21/text.html says
"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."

There are two problems:
1) white-space can apply to inline elements, so this statement doesn't
achieve the apparent intent of disabling text-align:justify on
white-space:pre/pre-line elements. One could have a white-space:normal,
text-align:justify block containing a big lump of white-space:pre content,
or likewise a white-space:pre, text-align:justify block containing
white-space:normal content.
2) Why are pre-line and pre singled out here, but pre-wrap is not? pre-line
without any newlines present behaves just like pre-wrap.

I suggest this be replaced by a statement somewhere that preformatted spaces
may not be stretched by text-align:justify.

"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
Received on Monday, 23 June 2008 04:21:31 UTC

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