Re: [csswg-drafts] [css-ui] ? Allow <textarea> to be sized by contents. (#7542)

I missed this discussion, but here are my two cents about what was said:

- Absolutely agree with @fantasai that we shouldn't have a separate property for this. 
- I really like the elegance of `height: max-content`. Placeholders are essentially shadow DOM descendants and thus should automatically be taken into account when calculating intrinsic size. 
- You don't need separate syntax to round to a multiple of `1lh`, [we already have](https://drafts.csswg.org/css-values/#round-func) `round(up, max-content, 1lh)`, no? We just need to allow intrinsic size keywords in there, which IIRC was the plan all along.
- Scrollbars is a tough one, but perhaps `round(up, max-content + 1, 1lh)` would suffice for use cases? Or a `box-sizing` keyword to add scrollbars to height rather than subtract from it?

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


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

Received on Monday, 1 August 2022 22:45:08 UTC