[wp-trac] [WordPress Trac] #51294: Image core block doesn't show the images properly
WordPress Trac
noreply at wordpress.org
Sat Sep 12 13:58:40 UTC 2020
#51294: Image core block doesn't show the images properly
--------------------------+-----------------------------
Reporter: palfizsolt | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.5.1
Severity: major | Keywords:
Focuses: |
--------------------------+-----------------------------
In the editor the core image block shows the images correctly, but when it
renders the photo on the target the aspect ratio is bad.
Steps to reproduce:
* Create a post and add an image block
* choose a big image from the media library
* see the preview of the new post, the image ratio will be bad
Reason of the issue:
The height html property is defined in the <img>, but the width property
is overwritten with the wp-block-image style to max-width:100%.
Possible fix of the issue:
Remove the height and width property from the <img>
Note:
The issue is occurs only the image is linked from the media libary. There
is no issue with external (URL) images. There was not this issue in the
previous version of WordPress.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51294>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list