RE: <br> and generated-content

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 UTC