W3C home > Mailing lists > Public > www-style@w3.org > August 2002

CSS2.1: \A and white-space

From: fantasai <fantasai@escape.com>
Date: Fri, 23 Aug 2002 08:55:36 -0400
Message-ID: <3D6630C8.F5AC095E@escape.com>
To: www-style@w3.org

I was flipping through CSS2.1, and I came across the passage about \A - 

http://www.w3.org/TR/2002/WD-CSS21-20020802/generate.html#content :
   #  Authors may include newlines in the generated content
   #  by writing the "\A" escape sequence... This inserts a
   #  forced line break, similar to the BR element in HTML.

A while ago, Boris Zbarksy wrote
  | Wouldn't you need to also set white-space:pre to get things like
  | \A to render? I think \A puts a newline character in the text, but
  | after that the text is laid out the way any text with a newline
  | would be and the whitespace (including newlines) is collapsed into
  | just spaces.

Which makes sense and is how Mozilla implements the 'content' property.
After all, \A is just an escape sequence that means "newline". CSS2.1,
however, seems to override that expectation with the wording of its \A
explanation and the following example.

~fantasai
Received on Friday, 23 August 2002 08:51:42 GMT

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