Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up<pre> shouldn't render a final trailing newline #26754
Open
Labels
Comments
|
I’ll look some more, but the first thing I tried is the same happens with http://software.hixie.ch/utilities/js/live-dom-viewer/saved/8160 |
|
It also happens with other kinds of forced line breaks. At most one trailing break is removed/ignored. http://software.hixie.ch/utilities/js/live-dom-viewer/saved/8163 <p>hello</p>
<p>hello<br></p>
<p>hello<br><br></p>
<style>p { border: solid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As part of the work in #26440, I discovered some surprising behaviour about
<pre>. Given:In other browsers, only the final example with two newlines renders an empty line below
hello. In the initial implementation in #26447, Servo renders an empty line for the second case as well. I have not been able to find spec text in https://drafts.csswg.org/css-text-3/ that explains why other browsers behave the way they do.I've been reading:
cc @SimonSapin