Skip to content

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

Description

@fantasai

Pulling out of #12950 (comment) ...

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: #13355

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    Newer FTF agenda items

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions