[wp-trac] [WordPress Trac] #61723: Twenty Sixteen: Image Block Alignment Offset (Left/Right)

WordPress Trac noreply at wordpress.org
Mon Jul 22 16:16:38 UTC 2024


#61723: Twenty Sixteen: Image Block Alignment Offset (Left/Right)
---------------------------+-----------------------------
 Reporter:  mrfoxtalbot    |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Future Release
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:  javascript
---------------------------+-----------------------------
Changes (by sabernhardt):

 * keywords:  reporter-feedback => needs-patch
 * focuses:   => javascript
 * version:  6.6 =>
 * milestone:  Awaiting Review => Future Release


Comment:

 The negative margin itself is part of an
 [https://wordpress.org/documentation/article/twenty-sixteen/#overhanging-
 full-size-image intentional design feature] for full-width images and
 aligned `blockquote` elements.

 The bug with resized images requires a specific set of conditions to
 reproduce, and I was able to experience it with WordPress 6.5 and Twenty
 Sixteen 3.2 as well as WP 6.6.

 - Place the Image block after enough content so that it would appear below
 the entry meta on large screens.
 - Choose an image that is at least 840 pixels wide.
 - Change the Width setting to resize the image, but keep the "Large" or
 "Full Size" Resolution setting.

 The [https://core.trac.wordpress.org/browser/trunk/src/wp-
 content/themes/twentysixteen/js/functions.js?rev=56102#L167 below entry
 meta script] checks the `width` attribute for the size, but the editor
 adjusts the image width in the `style` attribute.

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


More information about the wp-trac mailing list