W3C home > Mailing lists > Public > www-style@w3.org > June 2014

[css-display] Explaining <br>

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 12 Jun 2014 16:05:39 -0700
Message-ID: <CAAWBYDCCmWvFkkXcMor+FMdFX2=JHfcaUu0FYq5-XEH2TxsKTA@mail.gmail.com>
To: www-style list <www-style@w3.org>
At the January f2f, we figured out a decent hack that seems to explain
the rendering of <br> properly:

br {
  display-box: contents;
  content: "\a";
  white-space: pre;

However, when Hixie was planning to add this to the HTML style sheet,
dbaron objected to it on performance reasons:

So, David, how bad is this?  Should we go with a different solution,
like a dedicated 'display' value just for <br> (Hixie suggested
"display: newline;" in the linked bug).

Received on Thursday, 12 June 2014 23:06:26 UTC

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