[wp-trac] [WordPress Trac] #63549: Twenty Twenty-One: Line-height inconsistency in List Item blocks between editor and frontend due to reset styles – follow-up to #60196
WordPress Trac
noreply at wordpress.org
Mon Jun 9 09:56:15 UTC 2025
#63549: Twenty Twenty-One: Line-height inconsistency in List Item blocks between
editor and frontend due to reset styles – follow-up to #60196
---------------------------+-----------------------------
Reporter: rishabhwp | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Keywords:
Focuses: css |
---------------------------+-----------------------------
This ticket is a follow-up to
[#60196](https://core.trac.wordpress.org/ticket/60196), which fixed margin
differences between the editor and frontend. However, there's still a
noticeable spacing issue due to a mismatch in `line-height`.
As mentioned in the comment
(https://core.trac.wordpress.org/ticket/60196#comment:10), the editor sets
`line-height` on the `<html>` tag, while the iframe used in the editor
applies `line-height: normal` on the `<body>`. This causes the text
spacing in the editor to look slightly different from the frontend.
=== Backend Editor
[[Image(https://i.postimg.cc/k5j8rX9J/backend.png)]]
=== Frontend
[[Image(https://i.postimg.cc/50TC076D/frontend.png)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63549>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list