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

Re: <br> and generated-content

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 01 Jul 2008 11:47:40 -0400
Message-ID: <486A519C.3050500@mit.edu>
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
CC: "www-style@w3.org" <www-style@w3.org>

Daniel Glazman wrote:
> It's off-topic but since we deal with <br> here, I urge
> browser vendors to fully support ::before and ::after on <br>.
> This allows very simple effects like
> 
> body[showBRs="true"] br::before {
>   content: "\0000b6"; /*  */
> }

So in a UA which implements <br> using generated ::before this would 
remove the line-break, and in a UA which implements <br> using generated 
::after this would leave the line-break, right?

And in a UA which treats <br> as a replaced element this may or may not 
do anything at all?

I don't see anything wrong with requiring that <br> not be a replaced 
element, but that seems like an HTML decision, not a CSS one.

-Boris
Received on Tuesday, 1 July 2008 15:49:58 GMT

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