[wp-trac] [WordPress Trac] #63549: Twenty Twenty-One: Line-height inconsistency in the editor with Lists and other blocks

WordPress Trac noreply at wordpress.org
Thu Jun 26 23:33:02 UTC 2025


#63549: Twenty Twenty-One: Line-height inconsistency in the editor with Lists and
other blocks
-----------------------------------------------------+---------------------
 Reporter:  rishabhwp                                |       Owner:  (none)
     Type:  defect (bug)                             |      Status:  new
 Priority:  normal                                   |   Milestone:  6.9
Component:  Bundled Theme                            |     Version:  6.4
 Severity:  normal                                   |  Resolution:
 Keywords:  has-patch has-test-info has-screenshots  |     Focuses:  css
-----------------------------------------------------+---------------------
Changes (by SirLouen):

 * keywords:  has-patch has-test-info => has-patch has-test-info has-
     screenshots


Comment:

 == Test Report
 === Description
 ✅ This report validates that the indicated patch works as expected.

 Patch tested: https://github.com/WordPress/wordpress-develop/pull/8940

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.28
 - Server: nginx/1.29.0
 - Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
 - Browser: Chrome 137.0.0.0
 - OS: Windows 10/11
 - Theme: Twenty Twenty-One 2.5
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.0

 === Testing Instructions
 1. Add some blocks: Navigation with some elements and Preformatted blocks
 2. Add some background to the blocks to clearly see the limits of the
 block
 3. 🐞 Check the difference between the block editor and the front end. Is
 little but there is some difference

 === Expected Results
 - Line Height should not be different between front and editor.

 === Actual Results
 1.  ✅ Issue resolved with patch.

 === Additional Notes
 - Now with [https://core.trac.wordpress.org/ticket/63549#comment:9
 additional info provided here], I can clearly see the problem that has
 been causing confusion in #60196 (because this also happens to affect
 Lists, but since Lists have an even bigger problem with `data-blocks`
 margins that is like an elephant in the room, this little visual glitch is
 difficult to distinguish in that block.

 === Supplemental Artifacts

 Preformatted/Navigation pre patch (PR8940)

 [[Image(https://i.imgur.com/fybeLwf.png)]]

 Preformatted/Navigation with patch (PR8940)

 [[Image(https://i.imgur.com/GldUOpb.png)]]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63549#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list