Re: [csswg-drafts] [css-sizing] Possible to reproduce a `<div>`'s `width: auto` behavior on any element? (#7427)

What about [`width: stretch`](https://drafts.csswg.org/css-sizing-4/#sizing-values) isn't sufficient for what you want?  I think it's intended to do basically what you're asking (at least based on a quick read of your comment).

I think to test it in current implementations, you'll need to use `width: -webkit-fill-available` and `width: -moz-available`, at least [according to MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/width#browser_compatibility).  I think it's also likely that the existing implementations may need some improvement, so it would be good to find out what improvements are needed.

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


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

Received on Wednesday, 29 June 2022 19:47:54 UTC