Intent to prototype: CSS aspect-ratio in [css-sizing-4]
70 views
Skip to first unread message
Boris Chiou
unread,
May 20, 2020, 5:34:57 PM5/20/20
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev-platform
*Summary*: This property sets a "preferred aspect ratio" for the box, which
will be used in the calculation of auto sizes and some other layout
functions. (Note: If a box has both a width and a height that are not
automatic, then the preferred aspect ratio has no effect.)
Example: A very simple case: if there is only a <div> with 'width: 100px'
and 'aspect-ratio: 1 / 1'. The automatic size of its height is 100px.