Skip to content

Rename datetime edit minute pseudo-element - #42935

Open
kataokatsuki wants to merge 1 commit into
twbs:mainfrom
kataokatsuki:backport-datetime-edit-minute-field
Open

kataokatsuki wants to merge 1 commit into
twbs:mainfrom
kataokatsuki:backport-datetime-edit-minute-field

Conversation

@kataokatsuki

Copy link
Copy Markdown

Description

Backport #42140 from v6.

::-webkit-datetime-edit-minute doesn't match any element in Chromium or WebKit, which both name the minute field ::-webkit-datetime-edit-minute-field. As a result, the minute field keeps the browser's default padding: 1px, while the hour, day, month and year fields get padding: 0 (#42007, #42052).

On the Browserslist question raised in #42052: both names are non-functional ::-webkit- pseudo-elements, which Selectors 4, Appendix B requires browsers to treat as valid at parse time, so the rename shouldn't affect how the rest of this selector list is parsed. I've only measured the result in Chrome 152: in the built CSS, the minute field's computed padding goes from 1px to 0, the same as the hour field.

@kataokatsuki
kataokatsuki requested a review from a team as a code owner September 17, 2026 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant