[wp-trac] [WordPress Trac] #45580: Twenty Seventeen: images in the Classic Block cannot be resized

WordPress Trac noreply at wordpress.org
Tue Dec 11 10:55:28 UTC 2018


#45580: Twenty Seventeen: images in the Classic Block cannot be resized
---------------------------+--------------------
 Reporter:  azaozz         |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  5.0.1
Component:  Bundled Theme  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+--------------------
 To reproduce:
 1. Start a new post.
 2. Insert a Classic Block.
 3. Insert an image.
 4. Attempt to resize it by dragging the corners.

 The image "snaps back" to 100% width.

 Seems that has been the case for a while (in the Classic Editor). Caused
 by `width: inherit;` from here:

 {{{
 .editor-styles-wrapper img {
     height: auto; /* Make sure images are scaled correctly. */
     width: inherit; /* Make images fill their parent's space. Solves IE8.
 */
     max-width: 100%; /* Adhere to container width. */
 }
 }}}

 (which is imported from editor-style.css).

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


More information about the wp-trac mailing list