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

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

== [css-forms-1] ::field-component and ::field-separator should be children of ::field-text ==
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 https://github.com/w3c/csswg-drafts/issues/11852

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


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

Received on Thursday, 15 January 2026 22:12:09 UTC