Make WordPress Core

Opened 9 days ago

Last modified 9 days 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: 6.6.1
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 9 days ago.
Effekt without size attributes
Bildschirmfoto 2024-08-29 um 04.57.49.jpg (827.1 KB) - added by Drivingralle 9 days ago.
Image with fake size attributes

Download all attachments as: .zip

Change History (4)

@Drivingralle
9 days ago

Effekt without size attributes

@Drivingralle
9 days ago

Image with fake size attributes

#1 @Drivingralle
9 days ago

Tested in Playground with 6.6.1 and nightly. With TT4.

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

#2 @Drivingralle
9 days ago

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

Note: See TracTickets for help on using tickets.