-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix: Drop Cap + alignment produces a gap between paragraphs #18831
Fix: Drop Cap + alignment produces a gap between paragraphs #18831
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does regress #12177. The drop cap now overflows the hover area again.
561eb17
to
91b2898
Compare
Hi @epiqueras, thank you for the review! It seems I missed something in my tests. It turns out that addressing this problem is more complex, I proposed a new solution. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @epiqueras,
Some ideas: I tried lots of things with pure CSS and I was not able to find a solution that works on all case. |
91b2898
to
14c1d84
Compare
Did you try this one: https://stackoverflow.com/a/5685062? |
Hi @epiqueras,
And unfortunately, it did not work. |
@jorgefilipecosta This doesn't work in Firefox, probably because the selector isn't working: |
Additionally, it seems like this is only applied in the editor? Previously this worked on the front-end too. |
I'm sorry for the delay @ellatrix, I lost this mention. Thank you for fixing this issue 👍 |
Description
Fix: #18409
These group fo styles were added in #12177 to fix an issue with one-line paragraphs and drop cap. It seems removing clear: both; fixes #18409
bug and keeps the fix added in #12177.
How has this been tested?
I verified bug #18409 was fixed and verified we did not regress on the problem #12177 addresses.