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

Established standard

Status in Chromium

Blink>Forms


Enabled by default (tracking bug) in:

  • Chrome for desktop release 83
  • Chrome for Android release 83
  • Android WebView release 83

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • In development
  • No signal
  • No signal
  • No signals

Owner

Last updated on 2020-11-09