min/max/step support for calendar picker on datetime/datetime-local
https://bugs.webkit.org/show_bug.cgi?id=102628
Patch by Kunihiko Sakamoto <ksakamoto@chromium.org> on 2012-11-18
Reviewed by Kent Tamura.
Source/WebCore:
Gray out dates with no allowed values on calendar picker for datetime/datetime-local
when values are limited by min/max/step attributes.
Test: platform/chromium/fast/forms/calendar-picker/calendar-picker-datetime-with-step.html
* Resources/pagepopups/calendarPicker.js:
(CalendarPicker.prototype._stepMismatch):
Returns true iff there are any allowed values in the given day.
LayoutTests:
Verify that calendar picker has correct available dates when
min/max/step attributes are set in datetime input.
* platform/chromium/fast/forms/calendar-picker/calendar-picker-datetime-with-step-expected.txt: Added.
* platform/chromium/fast/forms/calendar-picker/calendar-picker-datetime-with-step.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135110 268f45cc-cd09-0410-ab3c-d52691b4dbfc
5 files changed