According to the HTML spec, <input type=time>, which allows users to input time in hours, minutes, and seconds, should support reversed ranges because it has a defined maximum of "23:59:59". A reversed range is when the input has a min and max attribute where the max is less than the min, and in this state, the input should allow values which are less than the min or greater than the max, but not in between them. This has been in the spec for many years but has not been implemented until now.
Motivation
Without this feature, web developers cannot express time inputs which should cross midnight. See this discussion: https://www.w3.org/Bugs/Public/show_bug.cgi?id=7688
Demo
Documentation
Specification
Final published standard: Recommendation, Living Standard, Candidate Recommendation, or similar final form
Status in Chromium
Enabled by default
(tracking bug)
Consensus & Standardization
- In development
- No signal
- No signals
Owner
Last updated on 2021-12-13