soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
316 stars 29 forks source link

Width and height declaration in the img tag #1249

Open kancur opened 4 years ago

kancur commented 4 years ago

Describe the feature you'd like to see included in Oxygen.

Hi guys, after reading this - and seeing that I have a problem with "cumulative layout shift" ---> I would love to have the width/height declared in the img tag for my images, is there any way to do this in oxygen?

Even if I declare the width/height in the oxygen editor, it gets injected as CSS, which is not what I'm looking for. Thank you! 🙂

What are the use cases for this feature? Declaring width and height so browsers can calculate the aspect ratio and reserve space to prevent the cumulative layout shift. Cumulative layout shift will become a ranking factor in google sometime in the future as confirmed by Google.

image

wpsumo commented 4 years ago

+1 for srcset support. Native browser adaptive images.