4 ms·
div { width: 640px; aspect-ratio: 16 / 9; }
by LukeLambert 4y ago
div {
width: 640px;
aspect-ratio: 16 / 9;
}
- dheera 4y ago> But with Chrome and Firefox supporting it behind an experimental flag So basically not supported, and you have to go back to div hell. There should be some future.js file that you can import to make all this stuff just work in older browsers.
- TheAngush 4y agoWhere are you getting that from? It seems to be fully supported: https://caniuse.com/mdn-css_properties_aspect-ratio https://caniuse.com/mdn-css_properties_aspect-ratio I've been using if for months with no issues in cross-browser testing, and I haven't enabled any experimental flags.