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:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25503

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).

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:22 UTC