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

fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-forms-1] Which form controls does ::field-text apply to? ==
Pulling out of https://github.com/w3c/csswg-drafts/issues/12950#issuecomment-3402955776 ...

fantasai wrote:
> do we really need ::field-text for <textarea>...?

Joey wrote:
> Since the textarea element supports the placeholder attribute just like the input element, I don't see why they shouldn't have the same pseudo-elements. Whether ::field-text is needed for either element is probably worth justifying.

fantasai replied:
>  I think if we have ::field-text for some form controls that look like text fields, we should have it for all of them. It's an even stronger argument than consistency between single-line inputs and multiline inputs, which behave differently in a number of ways. :)

Proposals to discuss:
- `::field-text` applies to `<input type=text>` and anything that has a derivative interface, including date, time, number, password, etc.
- `::field-text` also applies to `<textarea>`.

Related issue: https://github.com/w3c/csswg-drafts/issues/13355

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13400 using your GitHub account


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

Received on Monday, 26 January 2026 22:22:21 UTC