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

The CSS Working Group just discussed `[css-ui] ? Allow <textarea> to be sized by contents.`, and agreed to the following:

* `RESOLVED: Values will be fixed | content`

<details><summary>The full IRC log of that discussion</summary>
&lt;lea> Straw poll posted in https://github.com/w3c/csswg-drafts/issues/9102#issuecomment-1747785298<br>
&lt;fantasai> iank_: Put on agenda again because some discussion about current name and values and suggestions for other ones<br>
&lt;fantasai> iank_: so agenda to bikeshed these<br>
&lt;fantasai> iank_: I've seen a few variations. A lot keep 'form-sizing' but use 'content' instead of 'auto'<br>
&lt;fantasai> iank_: another suggestion was normal | auto?<br>
&lt;fantasai> TabAtkins: don't think we should go with generic keywords, Lea's suggestion is better<br>
&lt;TabAtkins> content | fixed<br>
&lt;TabAtkins> s/Lea's/later/<br>
&lt;fantasai> iank_: So 'form-sizing: content' and also 'field-sizing: content'<br>
&lt;lea> q?<br>
&lt;fantasai> TabAtkins: based on the suggestions in the thread, I suggest 'content' and 'fixed'<br>
&lt;lea> q+<br>
&lt;fantasai> TabAtkins: weak pref, but sound reasonable<br>
&lt;astearns> +1 to -sizing &amp; content<br>
&lt;fantasai> TabAtkins: and even if the precise definition is wonky, it's easy to guess what the behavior is<br>
&lt;astearns> ack lea<br>
&lt;fantasai> TabAtkins: unlike auto / normal / default / legacy<br>
&lt;fantasai> lea: how does this interact with width/height?<br>
&lt;fantasai> iank_: this changes how you resolve the intrinsic values<br>
&lt;miriam> q+<br>
&lt;fantasai> iank_: if you specify 'width: 100%', during intrinsic sizing might behave as min-content/max-content<br>
&lt;fantasai> iank_: if you specify 'width: 100px', won't get a behavior change<br>
&lt;fantasai> TabAtkins: this makes form contents use the content-based sizing rules that normal non-replaced elements do<br>
&lt;fantasai> TabAtkins: form controls by default have weird intrinsic sizing due to legacy<br>
&lt;fantasai> iank_: This also disables the compressibility quirk<br>
&lt;fantasai> iank_: this quirk gets around the fact that form control elements have a fixed intrinsic size<br>
&lt;fantasai> iank_: if you set e.g. width: 100%, the min-content size will be zero<br>
&lt;fantasai> iank_: this will opt you out of that behaior<br>
&lt;fantasai> iank_: it existed because there wasn't a good intrinsic size before<br>
&lt;astearns> ack miriam<br>
&lt;fantasai> lea: does it have other effects? e.g. Chrome doesn't allow visible overflow<br>
&lt;fantasai> iank_: this only affects intrinsic sizing<br>
&lt;TabAtkins> compressibility thing: https://drafts.csswg.org/css-sizing/#min-content-zero<br>
&lt;fantasai> miriam: I'm liking 'content', but curious how it interacts with the sizing *-content keywords<br>
&lt;fantasai> miriam: they're doing slightly different things in different places, will it be confusing?<br>
&lt;fantasai> iank_: I don't think so, we suspect ppl already using min-content/max-content on these form controls already<br>
&lt;florian> q?<br>
&lt;fantasai> iank_: if you use this, set 'form-sizing: content', then this'll change how *-content behave, make them follow the content<br>
&lt;fantasai> florian: This is actually a good relationship, because it ties the *-keywords to be based on the contents<br>
&lt;fantasai> iank_: Any preferences on form sizing vs field sizing<br>
&lt;fantasai> astearns: slight preference for field, because form means other things too<br>
&lt;fantasai> miriam: same<br>
&lt;fantasai> lea: also form-sizing feels like it affects &lt;form><br>
&lt;lea> control-sizing?<br>
&lt;fantasai> iank_: we got similar feedback on Twitter<br>
&lt;TabAtkins> huh. I woudn't have thought about field-sizing. Like input fields?<br>
&lt;TabAtkins> I guess, sure.<br>
&lt;florian> q+<br>
&lt;astearns> ack fantasai<br>
&lt;TabAtkins> fantasai: We don't use "field" in a lot of othe rplaces<br>
&lt;TabAtkins> fantasai: what about input-sizing?<br>
&lt;TabAtkins> fantasai: This is all about input elements<br>
&lt;lea> fixed reminded me, what about something-layout to match table-layout as a precedent ?<br>
&lt;fantasai> iank_: also affects textareas, select, etc.<br>
&lt;TabAtkins> iank_: That might be a little confusing since it also affects textarea and select<br>
&lt;fantasai> iank_: so input might not be great<br>
&lt;fantasai> iank_: talking about these elements on MDN, "field" appears a lot, so I think it would match ppl's expectations<br>
&lt;fantasai> miriam: we also do have &lt;fieldset> which refers to same idea<br>
&lt;TabAtkins> I wouldn't have thought of "field", but I suppose it makes sense, and we don't ahve any other concepts using that term in CSS so I think it's clear to use<br>
&lt;astearns> ack florian<br>
&lt;TabAtkins> (I do prefer form-sizing tho)<br>
&lt;lea> nah, I think -layout would be a bad idea here. auto | fixed might be good for the values though (same as table-layout)<br>
&lt;fantasai> florian: I think I like form better here, but just to be complete, we have a term for elements that can have native appearance, and we call them "widget".<br>
&lt;iank_> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input ("field appears 29 times")<br>
&lt;fantasai> florian: I don't think it would be very helpful here, so my preference still goes to "form"<br>
&lt;iank_> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input ("control" appears ~70 times)<br>
&lt;lea> input-sizing<br>
&lt;TabAtkins> fantasai: Seems like fixed|content for values. Any alternatives for fixed? Seems like we're happy for content<br>
&lt;TabAtkins> florian: Someone suggested legacy?<br>
&lt;fantasai> astearns: Should we resolve on 'fixed' and 'content'?<br>
&lt;TabAtkins> lea: There were many arguments in the thread about legacy being bad<br>
&lt;fantasai> lea: another would be 'auto' and 'fixed', which would match 'table-layout'<br>
&lt;fantasai> iank_: pretty strong to keep 'content'<br>
&lt;fantasai> astearns: Proposed 'content' and 'fixed' as values for this property, any objections?<br>
&lt;fantasai> RESOLVED: Values will be fixed | content<br>
&lt;TabAtkins> fantasai: Should we run a poll for these names too?<br>
&lt;chrishtr> form-sizing?<br>
&lt;TabAtkins> +1 to another poll<br>
&lt;fantasai> florian: not a fan of input-sizing because &lt;input><br>
&lt;lea> TabAtkins: sync or async?<br>
&lt;TabAtkins> async again<br>
&lt;fantasai> POLL: 1. form-sizing 2. field-sizing 3. input-sizing<br>
&lt;florian> 1<br>
&lt;miriam> 2<br>
&lt;TabAtkins> 1,2<br>
&lt;astearns> 2<br>
&lt;fantasai> no strong opinion<br>
&lt;lea> abstain, I think<br>
&lt;vmpstr> (abstain)<br>
&lt;iank_> 2,1<br>
&lt;chrishtr> 2,1<br>
&lt;iank_> (no strong opinion however)<br>
&lt;schenney> (abstain)<br>
&lt;changseok> 1<br>
&lt;flackr> 2<br>
&lt;fantasai> [discussion of poll results]<br>
&lt;TabAtkins> Since there's no active disagreement I'm fine with a straight majority, fwiw<br>
&lt;TabAtkins> We don't need a strong consensus when it's not controversial for the group<br>
&lt;fantasai> fantasai: I think it would be useful to poll authors on the two names, to see if there's a strong drift one way or another<br>
&lt;fantasai> lea: if we're pressed for time...<br>
&lt;fantasai> TabAtkins: we're not that pressed that a week is critical<br>
&lt;fantasai> astearns: faster to resolve on the call, after getting poll results<br>
&lt;dholbert> 2<br>
&lt;fantasai> [discussing poll mechanics]<br>
&lt;fantasai> proposed to have a poll using Lea's mechanism, but add in an emoji option<br>
&lt;fantasai> also discussing running polls over twitter / mastodon<br>
&lt;fantasai> astearns: So we will run a poll on form-sizing vs field-sizing, with values content and fixed.<br>
&lt;fantasai> astearns: We'll be able to also evaluate Lea's proposed async poll system<br>
&lt;fantasai> -> https://github.com/w3c/csswg-drafts/issues<br>
</details>


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


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

Received on Wednesday, 4 October 2023 23:47:33 UTC