[Webkit-unassigned] [Bug 45491] when empty, clicking "down" on outer-spin-button returns "max value"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 27 01:45:29 PDT 2010


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





--- Comment #4 from Kent Tamura <tkent at chromium.org>  2010-10-27 01:45:29 PST ---
Thanks for the comments.  I agree that assuming the empty as 0 is better.

* If 0 is in-range, and matches to step value
  "down" -> -step
  "up" -> +step
  If -step or +step is out of range, new value should be 0.

* If 0 is smaller than the minimum value
 "down" -> the minimum value
 "up" -> the minimum value

* If 0 is larger than the maximum value
 "down" -> the maximum value
 "up" -> the maximum value

* If 0 is in-range, but not matched to step value
 "down" -> smaler matched value nearest to 0.
   e.g. <input type=number min=-100 step=3> -> -99
 "up" -> larger matched value nearest to 0.
   e.g. <input type=number min=-100 step=3> -> 2

As for date/datetime/datetime-local/month/time/week types, we should assume "0" is "current date/time".

Does this make sense?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list