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

> I just published an article that explores how anchor positioning can be used to partially solve these kinds of issues: https://kizu.dev/shrinkwrap-problem/

This was a very interesting and creative article, but still too hacky and un-supported for me to use in real use cases.

I would highly recommend anyone stumbling on this issue to use this (pretty simple and clean) JS-only solution for now:
https://stackoverflow.com/questions/14596213/shrink-div-to-text-thats-wrapped-to-its-max-width/78307608#78307608

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


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

Received on Friday, 3 May 2024 16:57:26 UTC