Re:State of CSS
by nailer on Friday October 21, 2022 @01:28PM
(#33290687)
Yes you can https://css-tricks.com/almanac/properties/a/aspect-ratio/
[ Parent
| on HN ]
Re:State of CSS
by partiallypro on Friday October 21, 2022 @07:10PM
(#33293926)
Experimental on Safari, so it's unusable of you have a real world project.
Are you sure? It seems to work for me. MDN and caniuse agree: https://caniuse.com/mdn-css_properties_aspect-ratio