Re: [csswg-drafts] [css-sizing] How to shrink to fit the width? (#191)

- adding a `<br>` can hint enough to the browser to shrink wrap after line wrapping, but that's not viable for responsive text.
- wrapping flex layouts can leave unwanted space in a container (see boxes example in codepen demo)
- even ellipsing the text, so no wrapping occurs, still struggles to shrink wrap after it's task is done.

<img width="605" alt="Screenshot 2023-03-03 at 7 40 31 AM" src="https://user-images.githubusercontent.com/1134620/222762742-3a940ab5-8bab-4bb9-8f0f-62f5f9876059.png">

https://codepen.io/argyleink/pen/wvjeOdz

<br>

What I believe we want is shrink wrapping, and i mean that in a tricky way, we want it to shrink the inline size to fit the content AFTER wrapping has occurred. Some way to specify this inline-size or post-wrapping task would be really nice. 

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


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

Received on Friday, 3 March 2023 15:47:12 UTC