Auto Resize Background Video While Maintaining 16:9 Ratio & Margins

This is cool Nelson, thanks for sharing man, is this official W3C or custom Webflow centric CSS? does it work with things like Academy ratio - Wikipedia (1.37:1), and others: Aspect ratio (image) - Wikipedia ? I only ask because many are not straight integer relationships and involve a floating point.


Can you declare things like so:

<style>
 <video> {aspect-ratio: academy 2.35 / 1; *etc*}
</style>

Cheers for sharing.