Make WordPress Core

Opened 2 years ago

Last modified 12 months ago

#61953 new defect (bug)

aspect-ratio setting for image in overwritten pattern not working

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

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 2 years ago.
Effekt without size attributes
Bildschirmfoto 2024-08-29 um 04.57.49.jpg (827.1 KB ) - added by Drivingralle 2 years ago.
Image with fake size attributes

Download all attachments as: .zip

Change History (7)

@Drivingralle
2 years ago

Effekt without size attributes

@Drivingralle
2 years ago

Image with fake size attributes

#1 @Drivingralle
2 years ago

Tested in Playground with 6.6.1 and nightly. With TT4.

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

#2 @Drivingralle
2 years ago

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

#3 @hellofromTonya
2 years ago

  • Version 6.6.1

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.


#4 @zodiac1978
12 months ago

Hey @Drivingralle
do you have opened a GitHub issue in the Gutenberg repo? Then we could close this here as "reported-upstream".

#5 @Drivingralle
12 months ago

@zodiac1978 After my last Gutenberg ticket going very well, I'll update the description of this ticket and add it to Gutenberg after my vacation.

Note: See TracTickets for help on using tickets.