[wp-trac] [WordPress Trac] #49600: Twenty Twenty: Resized images are centered inside the editor (with no alignment set) since WordPress 5.4

WordPress Trac noreply at wordpress.org
Sun Mar 8 16:31:22 UTC 2020


#49600: Twenty Twenty: Resized images are centered inside the editor (with no
alignment set) since WordPress 5.4
---------------------------+-----------------------------
 Reporter:  dianeco        |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:  trunk
 Severity:  normal         |   Keywords:
  Focuses:  css            |
---------------------------+-----------------------------
 Until WordPress 5.3.2, resized images were left-aligned in the editor when
 no alignment was set. In WP 5.4 (tested with RC1), resized images in the
 editor are centered while they are correctly left-aligned on the front-
 end. The following lines in editor-style-block.css are causing this issue:
 https://github.com/WordPress/WordPress/blob/master/wp-
 content/themes/twentytwenty/assets/css/editor-style-block.css#L1063-L1065

 {{{
 .editor-styles-wrapper .wp-block-image.is-resized {
         margin-left: auto;
         margin-right: auto;
 }
 }}}

 I'm not sure what these lines are for. With WP 5.3, they were overridden
 by WordPress core, which is why it was working.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49600>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list