br with content doesnt break line
Reported by
piotr.au...@gmail.com,
Feb 5 2018
|
|||||
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
Steps to reproduce the problem:
1. Write `content` property for br selector with any string value.
Text inside br:
1. Write `content` property for br selector witn any string value.
2. Define `content` property for br::after selector with any string value and it will display the text of after.
code:
```html
<style>
br {
content: ' ';
}
br::after {
content: ' ';
}
</style>
<span>text<br>text</span>
```
What is the expected behavior?
Breakline and did not render text inside after.
What went wrong?
Br did'nt break line.
https://codepen.io/Piotr-Aueternum/pen/mRaMoO
Did this work before? N/A
Does this work in other browsers? Yes
Chrome version: 62.0.3202.94 Channel: stable
OS Version: Ubuntu 17.10 DDE
Flash Version:
https://codepen.io/Piotr-Aueternum/pen/mRaMoO
,
Feb 6 2018
,
Feb 22 2018
This is totally undefined! However, the WG's current intention is that <br> rendering is "magic" and not controlled by the 'content' property or anything else (so you don't need to reference styles when trying to do line layout for this). After all, you can't *reproduce* <br>'s behavior via 'content' on it, or actually put any content at all in it; setting `content: "AAAAA";` doesn't cause "AAAAA" to show up instead of a linefeed. <br> just ignores 'content' in general; it shouldn't have a magical effect here where it pays attention to it in exactly one aspect.
,
Feb 28 2018
The NextAction date has arrived: 2018-02-28
,
Mar 1 2018
Thanks for the clarification Tab. Koji, would you mind fixing this for LayoutNG?
,
Mar 13 2018
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by e...@chromium.org
, Feb 5 2018Labels: Needs-Feedback
NextAction: 2018-02-28