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

I’ve been using `text-wrap: balance` for a while now, and this issue severely restricts its utility to basically elements whose box is not visible (no backgrounds, no borders, etc.). For elements with a visible box, not only is this undesirable in practically every case I have come across, it is also _incredibly_ hard to work around. 

Not sure it's useful at this point, but here is another testcase: https://codepen.io/leaverou/pen/MWRZVJv

FWIW, I had also expected `fit-content` would do the reasonable thing here, and was surprised it did not. 

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


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

Received on Tuesday, 23 April 2024 13:49:29 UTC