W3C home > Mailing lists > Public > www-style@w3.org > March 2012

ISSUE-229 Combining justification and whitespace:pre*

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 19 Mar 2012 15:12:49 -0700
Message-ID: <CAAWBYDAmsY_p8vuM1roSzuKZMhxmMH_nspKNyw8bAnd0Ek3jUg@mail.gmail.com>
To: www-style list <www-style@w3.org>
Right now, CSS 2.1 specifies that text-align:justify doesn't do
anything when combined with whitespace:pre or pre-wrap.  As far as I
can tell, this was done due to no one having any good use-cases (and
thus no one knowing how it should really work in some cases).

I've been contacted by some internal people about this, because
they're working on docs stuff.  They want to both (a) preserve the
spaces that the user has typed in, like desktop word-processing
software does, and (b) justify text when the user requests it.  (a)
can only be done with a whitespace value.  (You can't use &nbsp;,
because then things don't break properly.)

The troublesome case seems to be combining all of this with tabs,
because you want tab-stops to still line up between lines.  MS Word's
behavior is to only justify the part of the line that comes after the
last tab character on the line, and my internal people say that's fine
for them too.

Are there any other issues with this that we can resolve while I have
the ear of relevant people?  If not, can we relax this restriction in

Received on Monday, 19 March 2012 22:13:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:13 UTC