Re: [csswg-drafts] [css-forms-1] Which form controls does ::field-text apply to? (#13400)

The CSS Working Group just discussed `[css-forms-1] Which form controls does ::field-text apply to?`, and agreed to the following:

* `RESOLVED: ::field-text applies to <input type=text> and anything that has a derivative interface`

<details><summary>The full IRC log of that discussion</summary>
&lt;bramus> fantasai: question about which form controls ::field-text applies to<br>
&lt;bramus> … clear from the spec that it’s definitely text inputs<br>
&lt;bramus> … but should basically apply to all that look like a text field – that contain text-ish content<br>
&lt;bramus> … and a separate thing about textarea<br>
&lt;fantasai> PROPOSED: ::field-text applies to &lt;input type=text> and anything that has a derivative interface, including date, time, number, password, etc.<br>
&lt;masonf> q+<br>
&lt;emeyer> q+<br>
&lt;bramus> … proposal that it appplies to input type=text and antyhing derivative<br>
&lt;astearns> ack masonf<br>
&lt;bramus> masonf: I like the second point in the proposal<br>
&lt;lwarlow> +1<br>
&lt;bramus> … textarea and input should be as similar as possible<br>
&lt;bramus> fantasai: yes, but separate point<br>
&lt;bramus> masonf: yes, great<br>
&lt;astearns> ack emeyer<br>
&lt;bramus> emeyer: you mentioned “etc”. does that include color inputs that show a hex value?<br>
&lt;SebastianZ> q+<br>
&lt;bramus> fantasai: they are considered button-like<br>
&lt;masonf> range<br>
&lt;bramus> lwarlow: would not apply to checkbox, radio, color, file, and range<br>
&lt;bramus> … color is very much defined as a button that opens a picker<br>
&lt;masonf> image?<br>
&lt;bramus> … it mostly renders the color in a color swatch<br>
&lt;masonf> also not image, reset, submit<br>
&lt;dbaron> also not apply to hidden<br>
&lt;bramus> … we should make that color input is kinda always a button, but depending on how presciptive we are to a UA … but if it did show the color, then maybe it should apply<br>
&lt;bramus> … IIRC WebKit doesn’t have a datepicker for week (or month) so it renders as text-ish<br>
&lt;bramus> astearns: you also had comment about desktop and mobile?<br>
&lt;bramus> lwarlow: main difference is whether it allows you to edit the text freehand<br>
&lt;bramus> … and I think that is a separate issue<br>
&lt;masonf> So this applies to date, datetime-local, email, month, number, password, search, tel, text, time, url, week<br>
&lt;masonf> q+<br>
&lt;bramus> … on mobile (chrome and safari) you can only change date with the picker, not the keyboard … but it could still be considered a textual input<br>
&lt;astearns> ack SebastianZ<br>
&lt;bramus> SebastianZ: shouldn’t input[file] match?<br>
&lt;bramus> … at least on some platforms it has text in it<br>
&lt;bramus> lwarlow: I personally think that it should ahve a pseudo, but a different one<br>
&lt;bramus> … maybe ::field-text is not prescriptive enough<br>
&lt;bramus> … but for text inputs it generally the name of the file or some “2 files” when multipicker<br>
&lt;bramus> … probably do want a pseudo<br>
&lt;bramus> … but a different one I htink personally<br>
&lt;bramus> … but could be persuaded otherwise<br>
&lt;bramus> SebastianZ: maybe when we strictly say “this is for text input”, then a file input wouldnt fit<br>
&lt;bramus> … but depends on the definition we take<br>
&lt;astearns> ack masonf<br>
&lt;bramus> masonf: feels like it’s an _editable_ field text, which is not true for a file input<br>
&lt;bramus> … wanted to ask about lwarlow’s mobile date picker fields<br>
&lt;bramus> … that’s an appearnce: auto behavior<br>
&lt;bramus> … would expect that we don’t do that for appearance: base<br>
&lt;bramus> … so would consider the pseudo to apply to all things that is directly editable as text<br>
&lt;bramus> lwarlow: this speudo would apply when an input is readonly. whethehr its actually editable, is somewhat tangential<br>
&lt;bramus> … ideally appearacne based behavior is as consistent as possible<br>
&lt;bramus> … maybe more of an HTML question than CSS?<br>
&lt;bramus> … maybe we have a UA property that can changes whether something is editable<br>
&lt;bramus> … at the very least i want the structure to be consistent on mobile<br>
&lt;astearns> ack fantasai<br>
&lt;bramus> masonf: I was agreeing with you here<br>
&lt;bramus> fantasai: let’s not focus too much on the direct editability of the text<br>
&lt;bramus> … in some cases it could be ??? or through a popup that feeds back into the text input<br>
&lt;bramus> … we have clear concept of things that are input like<br>
&lt;lwarlow> +1<br>
&lt;bramus> … (missed)<br>
&lt;masonf> Let's just make it clear by listing them. These? date, datetime-local, email, month, number, password, search, tel, text, time, url, week<br>
&lt;fantasai> s/(missed)/There's a rectangle, it contains text that represents the input the user is submitting into the form./<br>
&lt;bramus> astearns: sounds like we are in general agreement that it should apply to input type text and anything that has a derivative interface<br>
&lt;bramus> … can consider more things indiviually<br>
&lt;lwarlow> (also invalid types too fwiw)<br>
&lt;bramus> … objections?<br>
&lt;bramus> masonf: shouldn’t we get a fixed list?<br>
&lt;masonf> An illustrative list is what I was going for<br>
&lt;bramus> fantasai: should have a defintion tha tis not a list. the list should be illustrative, for if we later add more input types<br>
&lt;bramus> astearns: and if you have a list here, paste it in IRC<br>
&lt;bramus> … (mason already pasted it)<br>
&lt;astearns> Proposed: ::field-text applies to &lt;input type=text> and anything that has a derivative interface<br>
&lt;bramus> RESOLVED: ::field-text applies to &lt;input type=text> and anything that has a derivative interface<br>
</details>


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


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

Received on Wednesday, 18 February 2026 16:51:45 UTC