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

RE: <br> and generated-content

From: Alex Mogilevsky <alexmog@exchange.microsoft.com>
Date: Tue, 1 Jul 2008 01:30:45 -0700
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
CC: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <04F36FB4ED0F85459AA447F72711526F014043620BD4@DF-GRTDANE-MSG.exchange.corp.microsoft.com>

Yes, I am with you on that. I would love to see <br> being defined in pure CSS way, and that also being interoperable.

<br> has a multiple personality problem. It can be seen as a generic tag with generated content in it, or it can be seen as a special kind of replaced element that causes a line break no matter what, plus it allows some properties and before/after.

I personally like to see less magic and more well-defined behavior. If I set height and background on <br> I want to know what to expect...

-----Original Message-----
From: Daniel Glazman [mailto:daniel.glazman@disruptive-innovations.com]
Sent: Tuesday, July 01, 2008 1:14 AM
To: Alex Mogilevsky
Cc: fantasai; www-style@w3.org
Subject: Re: <br> and generated-content

Alex Mogilevsky wrote:

> This would pretty much mean <br> is a real element, not a magic construct. I welcome that line of thought.

Even if it is really a magic construct, it's not understandable from an
author's point of view if ::before and ::after don't apply to <br>.
<br> is in the DOM, insertable and manageable just like any other
element. GC must apply and be rendered.

</Daniel>
Received on Tuesday, 1 July 2008 08:31:33 GMT

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