[wp-trac] [WordPress Trac] #63276: Content width in block editor styles expects padding

WordPress Trac noreply at wordpress.org
Fri Jun 6 09:34:12 UTC 2025


#63276: Content width in block editor styles expects padding
----------------------------+----------------------
 Reporter:  SergeyKovalets  |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  6.9
Component:  Bundled Theme   |     Version:  5.4
 Severity:  normal          |  Resolution:
 Keywords:  2nd-opinion     |     Focuses:  ui, css
----------------------------+----------------------
Changes (by sabernhardt):

 * keywords:  needs-patch => 2nd-opinion
 * version:  5.0 => 5.4


Comment:

 The changes are small and very similar, so all the themes could be grouped
 together in one patch. However, committers and/or testers might appreciate
 having them in separate `diff` files (identifying the theme in each file
 name) or in separate pull requests.

 Before you create more patches, I should question whether my suggested
 **extra** ruleset is worth adding.
 - If we include the ruleset for old WordPress versions, I would want a
 comment in the stylesheet to explain why it lists three class names that
 the editor does not use anymore.
 - The classes come from [https://github.com/WordPress/wordpress-
 develop/blob/0ae7e0ad0c5775cd9c486b1e1bc15be3a87d3c68/src/wp-
 content/themes/twentyseventeen/assets/css/editor-blocks.css#L349-L351
 'editor-blocks' stylesheets] before [44152], but another class might
 belong in the list too.
 - The selectors could simply list the classes instead of putting them
 inside `.wp-block:where()`:
    {{{
 .editor-post-title__block,
 .editor-block-list__block,
 .editor-default-block-appender {
         max-width: 504px; /* account for padding in older WordPress
 versions */
 }
    }}}
 - For the 2.3% of WordPress sites still using versions 5.0 to 5.3, have
 many activated one of these eight themes **and** would update the theme
 without updating core?
 - Without the legacy ruleset, the blocks would become 30 pixels narrower
 in the editor with an old WordPress version. Then again, the content width
 has been 30 pixels too wide for five years, and it took this much time to
 identify and report the mismatch.

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


More information about the wp-trac mailing list