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

I gave this some more thought of how this should play with intrinsic sizes of replaced elements, and I suggest renaming my previous proposal to `intrinsic-sizing` to make it clearer that the intrinsic size isn't the thing being changed, but how the intrinsic size affects the layout is being changed.

Suppose you have an `<img src="file.jpg" width="1600" height="900">`. Assuming we apply `display: block` and `intrinsic-sizing: none`, and the containing block had 800 pixels, the `img` tag should occupy the space of 800 x 450 pixels. So the intrinsic size of the replaced element is still 1600 x 900, but the intrinsic size now only contributes to the intrinsic aspect ratio, and not directly to the width and/or height.

For form elements (input, select, textarea), it works either way to describe it as the intrinsic size no longer being platform defined but relying on the content, or the platform defined intrinsic size no longer applies and the element is laid out like a normal element.

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


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

Received on Sunday, 15 October 2023 15:29:19 UTC