- From: fantasai via GitHub <sysbot+gh@w3.org>
- Date: Wed, 03 Mar 2021 20:51:59 +0000
- To: public-css-archive@w3.org
Agenda+ to confirm that we want to make non-replaced elements ignore any transferred preferred sizes for the purpose of automatic minimum sizing.
Remember, this is the minimum size below which a flex item, by default, cannot shrink. We don't want to be too constraining, so that when it's sensible to shrink it can shrink.
Current spec:
if specified size exists: min(specified, content-based)
else: min(transferred, content-based)
Proposed spec:
for replaced:
if specified size exists: min(specified size, natural size)
else: min(transferred preferred, natural size)
for non-replaced:
if specified size exists: min(specified size, content size)
else: content size
In all cases, we apply an opposite-axis minimum transferred through the aspect ratio if any: min(specified size, max size, opposite-min * aspect-ratio)
Alternately we can ignore the transferred min of a non-replaced element.
[All of these are clamped by the appropriate maximum sizes.]
The various inputs into this are
* definite min/preferred/max sizes in affected axis
* definite min/preferred/max sizes transferred from opposite axis (if there's an aspect ratio)
* content-based size in affected axis (if non-replaced)
* natural size in affected axis (if replaced)
--
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6069#issuecomment-790046695 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 3 March 2021 20:52:02 UTC