DEV Community

Discussion on: Quick Tips: How to fix "Image elements do not have explicit width and height" in Page Speed Insights / Lighthouse

Collapse
 
grahamthedev profile image
GrahamTheDev

As a bonus tip for the future, one day we will be able to use aspect-ratio as a CSS property.

Unfortunately support for CSS aspect-ratio is only around 66% at the moment so it can't be used yet!