Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#61953 new defect (bug)

aspect-ratio setting for image in overwritten pattern not working

Reported by: drivingralle's profile Drivingralle Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:

Description

After building a syned pattern with an image (aspect-ration 16/9) and a headline and making both of them over writable. Add two of this to a page. Overwriting one of the instances.

Now the overwritten image doesn't use the aspect-ratio.
If you add any with and height values to the HTML of the overwritten image the aspect-ratio jumps into effect.

The size attributes and src-sets seem not be be added to the output.

Attachments (2)

Bildschirmfoto 2024-08-29 um 04.52.25.jpg (788.5 KB) - added by Drivingralle 4 months ago.
Effekt without size attributes
Bildschirmfoto 2024-08-29 um 04.57.49.jpg (827.1 KB) - added by Drivingralle 4 months ago.
Image with fake size attributes

Download all attachments as: .zip

Change History (5)

@Drivingralle
4 months ago

Effekt without size attributes

@Drivingralle
4 months ago

Image with fake size attributes

#1 @Drivingralle
4 months ago

Tested in Playground with 6.6.1 and nightly. With TT4.

First seen this behavior in a child theme of "Hello".

#2 @Drivingralle
4 months ago

If the image overwriting the default is a SVG the behavior is as expected.

#3 @hellofromTonya
4 months ago

  • Version 6.6.1 deleted

Hello @Drivingralle,

Welcome to WordPress Core's Trac.

I'm triaging bugs reported on 6.6.1 or 6.6.2 releases and then updating the ticket information accordingly to help contributors.

Resetting the Version as I'm not seeing any changes from the 6.6.1 release that might affect the reported issue.

Also, it might be better to report the bug in the Gutenberg repository, as investigation and changes will happen there.


Note: See TracTickets for help on using tickets.