Closed loikein closed 1 year ago
Found the new ratio thing: Embed responsive YouTube videos in 2021 - DEV Community
.video {
aspect-ratio: 16 / 9;
width: 100%;
}
Seems # of browsers with support for @supports
is smaller than support for aspect-ratio
.
More info: aspect-ratio | CSS-Tricks - CSS-Tricks
Also I want to try the native CSS video ratio thing again (if it was not my hallucination).
Future me: you're welcome.