W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2017

Re: [csswg-drafts] [css-display] Display values for <br> and <wbr>

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Tue, 24 Jan 2017 19:30:28 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-274911199-1485286227-sysbot+gh@w3.org>
The CSSWG concluded that we are not adding new display types for 
`<br>` and `<wbr>` as their behavior can be adequately explained by 
existing CSS rules such as those listed in the above discussion, and a
 new display type is an unnecessary burden to carry over in the Web 
platform forever. Engine optimization of this implementation is of 
course already allowed, and to simplify this the spec can specify 
`all: reset !important;` for the UA style sheet to prevent any author 
modification. Thus

```
br { all: reset !important; display: contents !important; content: 
"\a" !important; white-space: pre !important; }
wbr { all: reset !important; display: contents !important; content: 
"\200B" !important; }
```

should be enough to implement this in the HTML spec.

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/610#issuecomment-274911199 
using your GitHub account
Received on Tuesday, 24 January 2017 19:30:34 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:28 UTC