Jen was just tweetin’ about how the latest Safari Technical Preview has aspect-ratio
. Looks like Chrome and Firefox both have it behind a flag, so with Safari joining the party, we’ll all have it soon.
I played with it a while back. It’s awesome and much needed. There are ways to make `aspect-ratio` boxes, but they largely revolve around “padding hacks.”
Dave is excited about being released from jail:
Yesssss! Soon I will be released from my Open Source prison!
Seeing it working in Edge Dev 89 (M1) as well. https://t.co/bSKrWEPQyE
— Dave Rupert (@davatron5000) January 7, 2021
Once we can rely on it, FitVids (which I use on literally every site I make in one form or another) can entirely go away in favor of a handful of CSS applied directly to the elements (usually videos-in-<iframe>
s).
FitVids 2021:
The post `aspect-ratio` is going to deprecate FitVids appeared first on CSS-Tricks.
You can support CSS-Tricks by being an MVP Supporter.
About us and this blog
We are a digital marketing company with a focus on helping our customers achieve great results across several key areas.
Request a free quote
We offer professional SEO services that help websites increase their organic search score drastically in order to compete for the highest rankings even when it comes to highly competitive keywords.
Subscribe to our newsletter!
More from our blog
See all postsRecent Posts
- A definitive guide to streams February 27, 2021
- The Things I Add to Tailwind CSS Right Out of the Box February 27, 2021
- Building User Trust In UX Design February 27, 2021