Re: BR element and generated content

Alex Mogilevsky wrote:
> CSS2.1 default stylesheet defines <BR> element as
> br:before       { content: "\A" Alex Mogilevsky wrote:
> CSS2.1 default stylesheet defines <BR> element as
> 
> br:before       { content: "\A" }
> > If taken literally, this means
> 
> 1)      Generated content is applicable to <BR>
> 
> 2)      If a non-default stylesheet clears br:before it should not break 
> line lines.
> 
> I am not sure these are intended consequences of this definition in the 
> default stylesheet. Or are they?
> 
> Note that none of current browsers implement (2) and I believe only 
> opera has generated content have any effect on <BR>.

The default stylesheet is just a guideline: it's not normative.

Also, in CSS3 we'll be able to do
   br { white-space: pre; content: "\A"; }

I'm opposed to specifying normative behavior for <br> that requires
special-casing it. Implementing <br> as above should be allowed.

~fantasai

Received on Friday, 12 October 2007 20:25:53 UTC