- From: Ian Kilpatrick via GitHub <sysbot+gh@w3.org>
- Date: Mon, 20 Mar 2023 18:06:45 +0000
- To: public-css-archive@w3.org
One option that was brought up at the F2F was using the `min-intrinsic-sizing` property which messes around with what intrinsic sizing algorithm to use. See notes: https://github.com/w3c/csswg-drafts/issues/7552#issuecomment-1203201900 A simple proposal which uses this would be: ``` textarea { min-intrinsic-sizing: from-textarea; } input { min-intrinsic-sizing: from-input; } /* or for a global setting */ * { min-intrinsic-sizing: from-textarea from-input; } ``` (Note see: https://github.com/w3c/csswg-drafts/issues/8620 that `min-intrinsic-sizing` needs to be per-axis, above example might be better using `min-intrinsic-block-sizing`, and `min-intrinsic-inline-sizing` respectively). Combined with the `lh` unit this allows for control over what most folks desire, e.g. ``` textarea { min-height: 2lh; max-height: 4lh; line-height: 1.2em; min-intrinsic-sizing: from-textarea; } ``` -- GitHub Notification of comment by bfgeek Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7542#issuecomment-1476706343 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 20 March 2023 18:06:47 UTC