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

Why not `height: max-content`? See https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes

> Although the [`auto`](https://drafts.csswg.org/css-sizing-3/#valdef-width-auto) size of text input controls such as HTML’s `<input type=text>` and `<textarea>` elements is typically a fixed size, the contents of such elements can be used to determine a content-based [intrinsic size](https://drafts.csswg.org/css-sizing-3/#intrinsic-size), as for non-replaced block containers. The [`min-content`](https://drafts.csswg.org/css-sizing-3/#valdef-width-min-content) and [`max-content`](https://drafts.csswg.org/css-sizing-3/#valdef-width-max-content) keywords of the [sizing properties](https://drafts.csswg.org/css-sizing-3/#sizing-property) thus represent content-based sizes for form controls which render their value as text contained within their box, allowing such controls to size to fit their visible contents similarly to regular non-replaced elements.

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


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

Received on Friday, 29 July 2022 02:07:41 UTC