[csswg-drafts] [css-multicol] Shrink-to-fit multicol container (#5535)

mstensho has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-multicol] Shrink-to-fit multicol container ==
Exactly how to calculate min-content / max-content / fit-content is currently unspecified for multicol containers.

I seem to recall that this used to be defined in css-sizing, but then got removed. This is many years ago.

For example, if column-width is specified, and there's something inside the multicol container that's wider than that, how should that affect min/max preferred sizes?

```
  <div style="column-width:100px; border:solid; width:min-content;">
    <div style="width:200px; height:100px; background:yellow;"></div>
  </div>
```

There seems to be some consensus that min preferred inline-size stays at 100px, while max preferred inline-size becomes 200px. This may be exactly what the old version of the spec said, but I don't remember.

I think it should be defined in one of these specs:
https://drafts.csswg.org/css-multicol-1/
https://drafts.csswg.org/css-sizing-3/

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5535 using your GitHub account


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

Received on Monday, 21 September 2020 09:52:43 UTC