-
-
Notifications
You must be signed in to change notification settings - Fork 53
Fix blockquote and dd having textblocks double added #405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
e5048d4 to
62be8a6
Compare
|
The To fix this I removed both of those functions and replaced them with calls to |
|
Thanks, I was trying to find out why it was being done that way. I traced it back to the first commit we have recoded from 2007 which already used the textblock (my comments apply to dd too): Lines 2770 to 2774 in 93715c4
Lines 639 to 643 in 93715c4
At that point there was no logic to handle display elements like we have now: Lines 4094 to 4119 in f6abc11
I'm guessing this would only potentially cause problems if we have an inline blockquote? As before we would have a new textblock but now we won't. Here is a testcase with inline blockquote: <!DOCTYPE html>
<html>
<head>
<title>Test inline blockquote</title>
<style type="text/css">
div {
background-color: #ededed;
margin: 10px 3em;
padding: 15px;
border-radius: 5px;
}
blockquote {
display: inline;
border: solid 2px black;
}
</style>
</head>
<body>
<div>
<blockquote cite="https://www.huxley.net/bnw/four.html">
Words can be like X-rays, if you use them properly—they’ll go through
anything. You read and you’re pierced.
</blockquote>
<p style="text-align:right">—Aldous Huxley, <cite>Brave New World</cite></p>
</div>
</body>
</html>And here it how it changes the rendering from this branch, master and Firefox (top to bottom): Not sure if there is a good way to avoid breaking the current behavior for inline. We don't follow the "correct" inline behavior either. |
It looks like it wont be too hard to implement the correct border behavior for inline elements, so I'm going to focus on implementing that first then return to this PR after that's done. |
I'll mark this as WIP in the meanwhile. |

Test for #404