GoogleChromeLabs / GoogleChromeLabs/layout-shift-terminator

Detect a constant aspect ratio and use `aspect-ratio` instead of media queries

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
36
Forks
2
PR merge metrics
No merged PRs in 30d

Description

If the calculation determines that the viewport width and embed have a constant ratio, instead of generating media queries with `min-height` it could instead add a single [`aspect-ratio` property](https://caniuse.com/mdn-css_properties_aspect-ratio).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.