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

Re: Define <br> by CSS means?

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Sun, 22 Jul 2012 21:40:02 +0200
Message-ID: <500C5712.20305@kozea.fr>
To: www-style@w3.org
Le 22/07/2012 20:58, Håkon Wium Lie a écrit :
> Ignoring implementation for a moment, why shouldn't the above
> defitions of br work with inline-blocks?

I think what Andrew has in mind is this:

.foo { display: inline-block }
.foo::after { content: '\A'; white-space: pre }

The generated content is *inside* the inline-block so the line break 
will occur in the inner inline formatting context (after foo’s last 
child). What is wanted here is to break in the outer context (between 
foo and its next sibling.)

::outside::after (from css3-content WD) would work, but it was 
apparently removed from the ED. (And the whole module is marked obsolete.)

Simon Sapin
Received on Sunday, 22 July 2012 19:40:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:19 UTC