- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Tue, 16 Apr 2024 22:36:27 +0000
- To: public-css-archive@w3.org
The spec seems completely clear to me, and gives the behavior I'd expect - `field-sizing` changes how the element computes its *intrinsic size*, and setting an explicit width makes the element not care about its intrinsic width. (It still pays attention to the intrinsic height.) This works the same as every other element; the only difference between a `field-sizing:content` input and a div is that `width: auto` is max-content for the former and stretch for the latter. Note that `textarea { width: 100px; field-sizing: content; }` sets a fixed width but makes the height still respond to content (wrapped at that width). It would be *extremely bad* if that was impossible. -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10217#issuecomment-2060023011 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 16 April 2024 22:36:28 UTC