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

> I would like to know how to interact with resize: both? Many existing JS components will still adapt to the height of the textarea when the user drags it to change the height, and then adds the content again.

This would have to be done in script still. `resize: both` works by setting an explicit width/height on the inline style of an element (changing this wouldn't be web-compatible).
A component could intercept this style, and set a min-width / min-height on it instead if that is what was desired for example.

(FWIW in components I've seen they are somewhat split on this design decision, some prefer to keep the resize stable from what the user has explicitly resized to, others let it continue to grow).

Ian


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


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

Received on Thursday, 21 September 2023 20:05:48 UTC