Skip to content

How to convert negative number to a time string in stepDown? #10503

@vinhill

Description

@vinhill

What is the issue with the HTML Standard?

Consider invoking stepDown for <input type=time max=17:00 step=900>. Blink sets the value to 00:00 while Gecko computes 23:45.

According to stepDown, we subtract 15 minutes from zero obtaining a negative value. The element has no minimum and -00:15 is less than 17:00. In step 11 we then determine the new element value as

a valid time string that represents the time that is input milliseconds after midnight on a day with no time changes

see here.

Maybe time input elements should have a default minimum of zero and default maximum of 23:59?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions