Featured image: height set is not being inherited correctly on the frontend #42322
Labels
[Block] Post Featured Image
Affects the Post Featured Image Block
[Type] Bug
An existing feature does not function as intended
Description
This is a tricky one to find. A featured image block with a set height will show correctly in the editor but the frontend will display something different. There's a couple of reasons to this:
Step-by-step reproduction instructions
On empty theme, paste this code on a page:
Ensure that there's an image on the post you are displaying and the text forces the image to stretch.
Check the frontend, the image is not stretching there.
Screenshots, screen recording, code snippet
Editor:
Frontend:
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: