Skip to content

[css-forms-1] ::field-component and ::field-separator should be children of ::field-text #13355

@fantasai

Description

@fantasai

For internationalization, localization, and platform-dependent reasons, we can't let authors perform arbitrary layout of ::field-component and ::field-separator. Like, reordering the components using flexbox and order would be a real problem: if they hacked it up to work in their own OS configuration it's unlikely to work for anyone else. But it seems reasonable that the author might want to style various bits within the control while keeping this stream of text content as a unit, so I making these all children of a more ::field-text pseudo-element might be a way forward here. We can force the display value of ::field-text to flow and that limits the kind of trouble they can cause within the date/time text representation while still allowing the input field itself and other things like the picker-icon to be styled.

It also gives us a consistent way to style the inner text of a text-input style field: ::field-text is always available.

See also #11852

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