[Webkit-unassigned] [Bug 254761] New: input type=range not using [value] for step base

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 30 12:29:50 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=254761

            Bug ID: 254761
           Summary: input type=range not using [value] for step base
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: clshortfuse at gmail.com
                CC: cdumez at apple.com, wenson_hsieh at apple.com

CodePen: https://codepen.io/shortfuse/pen/xxaNpbR?editors=1010

Spec: 

> The step base is the value returned by the following algorithm:

> If the element has a min content attribute, and the result of applying the algorithm to convert a string to a number to the value of the min content attribute is not an error, then return that result.

> If the element has a value content attribute, and the result of applying the algorithm to convert a string to a number to the value of the value content attribute is not an error, then return that result.

> If a default step base is defined for this element given its type attribute's state, then return it.

> Return zero.

https://html.spec.whatwg.org/multipage/input.html#the-step-attribute

>From my understanding, if [min] *attribute* is not present, the step should be the [value] attribute. But it appears Webkit is using the min fallback value (default 0). This will also change the value of the control:

<input type=range step=10 value=1> has computed value of 0, not 1.

Neither Chrome, nor Firefox show this issue:

See: https://bugs.chromium.org/p/chromium/issues/detail?id=339194

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230330/1b7b0791/attachment-0001.htm>


More information about the webkit-unassigned mailing list