ratio property
The item's preferred aspect RATIO, width over height (css-sizing-4
4.1). It turns a size on one axis into a size on the other, a floor
or a cap included, which is part of what sizes the track the item is
in; and it leaves the item no auto size for its area to stretch on
both axes. An item of no stated size whose area stretches it both ways
is then as big as the area on one axis and as the ratio makes it on
the other -- the COVERING box, not the contained one, because its
automatic minimum size is transferred through the ratio from the
stretched axis (css-grid-1 6.6): aspect-ratio: 2 in a 100x100 area
is 200x100. A floor the page wrote in place of auto (min-width: 0)
has nothing to transfer, and the item is the contained 100x50.
Implementation
final double? ratio;