Skip to content

CSS forms: Support align-content on button / input centering #1410

Description

@jgraham

Description

This allows authors to override the alignment of text in buttons, making it easier to style form controls.

Note that the spec here is still under discussion. However our implementation experience suggests that successfully shipping this is a coordination/webcompat issue because some sites are expecting the current behaviour; if browsers don't ship together this platform change is unlikely to be possible.

Specification

w3c/csswg-drafts#14190

web-feature

No response

Test Links

https://wpt.fyi/results/html/rendering/non-replaced-elements/form-controls/resets.html?label=master&label=experimental&aligned&q=html%2Frendering%2Fnon-replaced-elements%2Fform-controls%2Fresets.html
https://wpt.fyi/results/html/rendering/widgets/baseline-alignment-and-overflow.tentative.html?label=master&label=experimental&aligned&q=html%2Frendering%2Fwidgets%2Fbaseline-alignment-and-overflow.tentative.html
https://wpt.fyi/results/html/rendering/non-replaced-elements/form-controls/align-content.tentative.html

Additional Signals

https://bugzilla.mozilla.org/show_bug.cgi?id=2055599

Activity

  1. github-actions commented on Sep 18, 2026

    @github-actions

    This comment was automatically generated based on the information you provided. Please don't edit it.

    No web features (from the web-features project) were found in your proposal. If your proposal doesn't correspond to a web feature, that is fine.
    Otherwise, please update your initial comment to include web-features: <feature-id>.
    To find feature IDs, use the web-features explorer.

  2. changed the title [-]CSS forms: Use align-content for button / input centering[/-] [+]CSS forms: Support align-content on button / input centering[/+] on Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions