RE: BR element and generated content

I like this approach too, and it is what most UAs do.

<BR> can be seen as a replaced element with special behavior which can't be expressed in CSS.

I means though that Opera's implementation which allows adding content before/after <br> is not standards-compliant.

-----Original Message-----
From: Nikodem [mailto:freyjkell@gmail.com]
Sent: Friday, October 12, 2007 12:26 PM
Subject: Re: BR element and generated content

Alex Mogilevsky wrote:
> CSS2.1 default stylesheet defines <BR> element as
> br:before       { content: "\A" }
> If taken literally, this means
It is not taken literally. Generally, the <br/> element was introduced
as not an object, but just presentative instruction for UA, 'make line
break'.

Received on Friday, 12 October 2007 19:46:24 UTC