- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Mon, 21 Jul 2008 14:42:40 -0700
- To: robert@ocallahan.org
- CC: "www-style@w3.org" <www-style@w3.org>
Robert O'Callahan wrote: > 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. Recorded as CSS2.1 Issue 53: http://csswg.inkedblade.net/spec/css2.1#issue-53 Proposed text: Replace "If the computed value of text-align is 'justify' while the computed value of white-space is 'pre' ... initial value." with "When 'text-align' is 'justify', characters and letter-spacing whose computed value of white-space is not 'normal' and not 'nowrap' must not be stretched (or shrunk) during justification." I also noticed that the note at the end of the section should be normative, not non-normative. Proposal: Make note after example normative. ~fantasai
Received on Thursday, 24 July 2008 05:16:06 UTC