GoogleChromeLabs / GoogleChromeLabs/layout-shift-terminator
Detect a constant aspect ratio and use `aspect-ratio` instead of media queries
Open
- 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
Assessment
This issue has not been assessed yet.