aspect-fit
Returns scale and dimensions of a rectagle that will fit a specific area.
Returns scale and dimensions of a rectagle that will fit a specific area.
Fit an element to specific dimensions, rotated according to the aspect ratio to maintain a fake "orientation lock"