Re: [csswg-drafts] [css-transitions] Transition to height (or width) "auto" (#626)

Not sure if I understand the effect of the basis. For example, https://drafts.csswg.org/css-grid/#minimum-contribution

> if the item’s computed [preferred size](https://drafts.csswg.org/css-sizing-3/#preferred-size) [behaves as auto](https://drafts.csswg.org/css-sizing-3/#behave-as-auto) or depends on the size of its [containing block](https://drafts.csswg.org/css-display-4/#containing-block) in the relevant axis, its minimum contribution is the outer size that would result from assuming the item’s used [minimum size](https://drafts.csswg.org/css-sizing-3/#min-width) as its preferred size; else the item’s minimum contribution is its [min-content contribution](https://drafts.csswg.org/css-sizing-3/#min-content-contribution).

So we would be in the former case if the basis is one of `auto`, `stretch`, `fit-content` or has a percentage? So e.g. `calc-size(stretch, 10px)` will mostly behave like 10px but it will be considered to depend on the size of the containing block?

And `calc-size(min-content, 10%)`  would be in the latter case despite the percentage, because it will just resolve to zero and `min-content` doesn't depend on the containing block?

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/626#issuecomment-1801648522 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 8 November 2023 11:00:45 UTC