Re: CSS2.1: \A and white-space

Bert Bos wrote:
> 
> fantasai writes:
> >
> > 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.
> 
> No, the 'white-space' property has no effect on '\A', since the '\A'
> is not inserted into the *input* of the CSS renderer, but into the
> *output*.

So whitespace in generated content is always preserved.
  content: "  <-twospaces	<-tab\A<-newline"
would become
--
  <-twospaces	<-tab
newline
--

You should mention this in the spec, then, as it is not clear.

~fantasai

Received on Monday, 26 August 2002 18:16:47 UTC