Closed Bug 2043938 Opened 1 month ago Closed 1 month ago

Time picker does not handle a valid range that crosses midnight for <input type="time">

Categories

(Toolkit :: UI Widgets, defect, P3)

Firefox 153
defect

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: sam, Assigned: sam)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Per MDN:

By setting a min attribute greater than the max attribute, the valid time range will wrap around midnight to produce a valid time range. This functionality is not supported by any other input types.

The input itself handles this correctly already, but the time picker does not, and currently will show no valid times.

For <input type="time">, the min can be set to greater than the max to create a valid time range that crosses midnight. While the input itself handles this correctly already, the time picker did not, which this patch fixes.

Assignee: nobody → sam
Status: NEW → ASSIGNED
Component: Layout: Form Controls → UI Widgets
Product: Core → Toolkit
Severity: -- → S3
Priority: -- → P3
Pushed by sam@scj.me: https://github.com/mozilla-firefox/firefox/commit/c98d6e2ca9fb https://hg.mozilla.org/integration/autoland/rev/5fda09b4721b Handle time ranges that cross midnight in time picker for <input type="time">. r=akulyk
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
QA Whiteboard: [qa-triage-done-c154/b153]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: