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

[CSS21] white-space default on :before and :after (was Re: Microsoft contributing test cases to the CSS WG)

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 5 Mar 2008 11:46:34 -0800
To: www-style@w3.org
Cc: Chris Wilson <Chris.Wilson@microsoft.com>, "w3c-css-wg@w3.org" <w3c-css-wg@w3.org>, "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>, Arron Eicholz <Arron.Eicholz@microsoft.com>
Message-ID: <20080305194634.GB15651@ridley.dbaron.org>

[ moving to www-style from public-css-testsuite; please reply there ]

On Wednesday 2008-03-05 11:35 -0800, L. David Baron wrote:
> I think Chapter_4/escaped-newline-001.htm is wrong (the spec
> requires a result that causes the test to fail) in that it assumes
> that an escaped newline should cause a newline.  The entire test
> *should* show up on one line, since the escaped newline is just
> whitespace, and there's no white-space: pre.  See:
> http://www.w3.org/TR/CSS21/generate.html#content
> which says:
> # Authors may include newlines in the generated content by writing
> # the "\A" escape sequence in one of the strings after the 'content'
> # property. This inserted line break is still subject to the
> # 'white-space' property.

> Chapter_12/content-white-space-001.htm is incorrect for the same
> reason as Chapter_4/escaped-newline-001.htm (above).

To respond to myself here, the spec suggests *informatively* in two
places that :before and :after should default to pre-line (although
in one of them, for HTML only, which seems bizarre):
http://www.w3.org/TR/CSS21/sample.html
http://www.w3.org/TR/CSS21/text.html#propdef-white-space
but it never says so normatively.

If we actually want this behavior, it should be stated normatively
(and then the tests would be correct).  If we don't, we should
probably take out the examples.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Wednesday, 5 March 2008 19:47:01 GMT

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