Re: [csswg-drafts] [css-multicol] What is the max-content width of a muticol container with only column-width:<length> (#9103)

@rachelandrew yup, your description of the behaviors matches my observations in my previous comment (though you stated it more clearly than I -- thanks!)

RE what behavior we'd like here: the Firefox behavior is at least simple and understandable.   I'm happy to consider even-more-reasonable behaviors if they're not too complex/expensive, but I think the Chromium/WebKit behavior for the `column-count:auto` scenario ends up using a width that's pretty arbitrary and doesn't make much sense.  The arbitrariness is particularly noticeable when the content is all on one line, as demonstrated by my [above-linked jsfiddle](https://jsfiddle.net/dholbert/5ak3xdnh/), and in [this abbreviated version of Rachel's codepen](https://codepen.io/dholbert/pen/GRzxXKN). Screenshot of that pen in Chrome -- notice all the awkward blank space on the right, and the text wrapping at ~2.5 lines per column:
![image](https://github.com/w3c/csswg-drafts/assets/426803/0fb1facc-97e7-4f35-83cb-68052aaf2a77)
Chrome is sizing the container to the max-content width of the content-as-if-it-were-a-regular-block (i.e. the length of that line of text); and as you can see in the screenshot, that's not at all related to how wide the content actually ends up being, when laid out in a multicol setting with specified-width columns.  So it's not really a meaningful/useful max-content measurement for this container.

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


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

Received on Tuesday, 21 November 2023 18:38:17 UTC