Jen Simmons on Twitter: "Turns out the code isn't: img { aspect-ratio: attr( width) / attr(height); } That's a way to think about it... but it's done differently. Thanks to @fantasai & Mozilla: @
![css - formular to calculate width/height (relative to parent) of container with translateZ inside of parent container with perspective - Stack Overflow css - formular to calculate width/height (relative to parent) of container with translateZ inside of parent container with perspective - Stack Overflow](https://i.stack.imgur.com/9GaM8.png)
css - formular to calculate width/height (relative to parent) of container with translateZ inside of parent container with perspective - Stack Overflow
![css - Calculate the bounding box's X, Y, Height and Width of a rotated element via JavaScript - Stack Overflow css - Calculate the bounding box's X, Y, Height and Width of a rotated element via JavaScript - Stack Overflow](https://i.stack.imgur.com/41w45.png)