Re: [csswg-drafts] [css-sizing] Please add vertical auto-resize textarea field

The Working Group just discussed `[css-sizing] Please add vertical auto-resize textarea field`, and agreed to the following resolutions:

* `RESOLVED: Have min and max content keywords behave for text area's height the same as for blocks in the height property`
* `RESOLVED: have min and max content keywords for width property of inputs and text area to size based on contained content`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: [css-sizing] Please add vertical auto-resize textarea field<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/2141<br>
&lt;dael> fantasai: Had a number of requests for form control text area able to take size from height on contents. Currently auto means take from rows and cols.<br>
&lt;dael> fantasai: Proposal is new min and max content behave on text areas more like blocks.<br>
&lt;dael> fantasai: 2 questions 1) should we do this for text area for block dimension. 2) do we want to consider this in the inline direction?<br>
&lt;dael> fantasai: Take them one at a time<br>
&lt;dael> fantasai: We previously discussed this on iframe, but that's separate due to more security concrns.<br>
&lt;dael> fantasai: Should min and max content on the height of a text area tell the text are to take height from the amount of contents it has.<br>
&lt;dael> dbaron: This is a new feature where as you type in the text area the size changes?<br>
&lt;dael> fantasai: Yes.<br>
&lt;dael> astearns: Can change.<br>
&lt;dael> tantek: I've seen that effect via JS.<br>
&lt;dael> TabAtkins: Easy to do in JS.<br>
&lt;dael> tantek: Shouldn't need JS though<br>
&lt;dael> fremy: As I mentione din issue I'm fairly confident this is a good feature. I've had people use JS and get it wrong. Still concerned about min-content being bigger then auto. Maybe only say max or have something special for min.<br>
&lt;dael> dbaron: For text areas they have a different min and max content because the way they wrap. Gneerally they allow any character for wrap though that might vary.<br>
&lt;dael> florian: I don't htink any character is the case.<br>
&lt;dael> dbaron: At least in emergency cases. Something long and unbreakable it'll wrap rather then force scroll.<br>
&lt;dael> florian: If so that's prob consiquence of styles. I don't think there's anything that calls for different text wrapping in these. I don't recall seeing any that didn't look like bugs. BUt you can achieve the effect by applying CSS and that may be in the UA stylesheet.<br>
&lt;dael> astearns: With regard to fremy concern about min-content being bigger then auto, is that the case for blocks?<br>
&lt;dbaron> Gecko's wrapping styles for textarea { white-space: pre-wrap; word-wrap: break-word; }<br>
&lt;dael> fantasai: I'm confused about this concern. I don't see why it's different. It's definitely true on grid itesm where auto can be smaller then min-content. Auto says use this other formula which is some cases but not all based on content.<br>
&lt;dael> fantasai: I don't understand the concern about auto having to have a relationship with min and max content. I'd prefer if they behave just like they do for blocks. Only think that needs to be different is auto itself.<br>
&lt;dael> astearns: SOund reasonable fremy ?<br>
&lt;dael> fremy: I'm still not sure...it's possible that auto is smaller then min-content. I'm surprised. In my mental modal auto is always bigger.<br>
&lt;dael> fantasai: BUt that's not true.<br>
&lt;dael> fremy: Possible. If that's not true then fine.<br>
&lt;dael> fantasai: [gives example when it's not]<br>
&lt;dael> astearns: The current discussion is using min and max content keywords and have them behave for text area's height the same as for blocks in the height property<br>
&lt;dael> astearns: More concerns or discussion?<br>
&lt;dael> astearns: Objections?<br>
&lt;dael> RESOLVED: Have min and max content keywords behave for text area's height the same as for blocks in the height property<br>
&lt;dael> astearns: Inline direction<br>
&lt;dael> fantasai: Since we're working on this for form controls we have option to make it apply in inline direction. Not sure it's useful for text areas. On inputs I could see people might want to use it to size an input. Question is do we make these keywords work on those.<br>
&lt;dael> TabAtkins: In inline axis we care more about mina nd max interacting with auto. That's how floats work. If we were to let min-content refer to actual content it would change behavior. If you had a long word wider then text area it would change size.<br>
&lt;dael> fantasai: Auto means use the size spec in the html attribute or default to the size.<br>
&lt;rachelandrew> +1 for the inline direction, makes sense that we can do the same in both axes.<br>
&lt;dael> fantasai: The min-content contribution has nothing to do with min-content size of element. Nothing to pinch unless you spec min or max content keyword nothing would change.<br>
&lt;dael> TabAtkins: You're right. Nevermind.<br>
&lt;dael> astearns: rachelandrew put +1 on IRC<br>
&lt;dael> astearns: proposal is to have min and max content apply to both inputs and text areas? With the previous for the height is it only text area or also inputs?<br>
&lt;dael> fantasai: Let's start with just text areas? Inputs are one liners.<br>
&lt;dael> astearns: But for inline this would be both?<br>
&lt;dael> fantasai: That seems reasonable. I'm also okay to only do it for input if people are uncomfortable with text area<br>
&lt;dael> astearns: Concerns about inputs and text areas?<br>
&lt;dael> astearns: prop: have min and max content keywords for width property of inputs and text area to size based on contained content<br>
&lt;dael> astearns: Obj?<br>
&lt;dael> RESOLVED: have min and max content keywords for width property of inputs and text area to size based on contained content<br>
&lt;dael> astearns: Is anyone chomping at the bit to impl and give feasibility feedback?<br>
&lt;dael> [silence]<br>
&lt;dael> astearns: We'll have to see how long this lasts in this level of the spec<br>
</details>


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

Received on Wednesday, 14 February 2018 17:59:33 UTC