Changeset 130467 in webkit


Ignore:
Timestamp:
Oct 4, 2012 11:24:56 PM (11 years ago)
Author:
tkent@chromium.org
Message:

Fix font for date/time input types.
https://bugs.webkit.org/show_bug.cgi?id=98478

Reviewed by Kentaro Hara.

input[type=date] should use monospace font if
ENABLE_INPUT_MULTIPLE_FIELDS_UI && ENABLE_INPUT_TYPE_DATE.

For other date/time types, they should use monospace font only
if their types are enabled. input[type="foo"] matches input
element with type="foo" even if the foo type is not supported.

The input[type=date] change is covered by
fast/forms/date/calendar-picker-appearance.html,
platform/chromium/fast/forms/date/date-suggestion-picker-appearance*.html

  • css/html.css:

(input[type="date"]):
(input[type="datetime"]):
(input[type="datetime-local"]):
(input[type="month"]):
(input[type="time"]):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r130465 r130467  
     12012-10-04  Kent Tamura  <tkent@chromium.org>
     2
     3        Fix font for date/time input types.
     4        https://bugs.webkit.org/show_bug.cgi?id=98478
     5
     6        Reviewed by Kentaro Hara.
     7
     8        input[type=date] should use monospace font if
     9        ENABLE_INPUT_MULTIPLE_FIELDS_UI && ENABLE_INPUT_TYPE_DATE.
     10
     11        For other date/time types, they should use monospace font only
     12        if their types are enabled. input[type="foo"] matches input
     13        element with type="foo" even if the foo type is not supported.
     14
     15        The input[type=date] change is covered by
     16        fast/forms/date/calendar-picker-appearance.html,
     17        platform/chromium/fast/forms/date/date-suggestion-picker-appearance*.html
     18
     19        * css/html.css:
     20        (input[type="date"]):
     21        (input[type="datetime"]):
     22        (input[type="datetime-local"]):
     23        (input[type="month"]):
     24        (input[type="time"]):
     25
    1262012-10-04  Hajime Morrita  <morrita@google.com>
    227
  • trunk/Source/WebCore/css/html.css

    r130339 r130467  
    478478
    479479#if defined(ENABLE_INPUT_MULTIPLE_FIELDS_UI) && ENABLE_INPUT_MULTIPLE_FIELDS_UI
    480 input[type="datetime"],
    481 input[type="datetime-local"],
    482 input[type="month"],
    483 input[type="time"],
     480#if defined(ENABLE_INPUT_TYPE_DATE) && ENABLE_INPUT_TYPE_DATE
     481input[type="date"] {
     482    font-family: monospace;
     483}
     484#endif
     485#if defined(ENABLE_INPUT_TYPE_DATETIME) && ENABLE_INPUT_TYPE_DATETIME
     486input[type="datetime"] {
     487    font-family: monospace;
     488}
     489#endif
     490#if defined(ENABLE_INPUT_TYPE_DATETIMELOCAL) && ENABLE_INPUT_TYPE_DATETIMELOCAL
     491input[type="datetime-local"] {
     492    font-family: monospace;
     493}
     494#endif
     495#if defined(ENABLE_INPUT_TYPE_MONTH) && ENABLE_INPUT_TYPE_MONTH
     496input[type="month"] {
     497    font-family: monospace;
     498}
     499#endif
     500#if defined(ENABLE_INPUT_TYPE_TIME) && ENABLE_INPUT_TYPE_TIME
     501input[type="time"] {
     502    font-family: monospace;
     503}
     504#endif
     505#if defined(ENABLE_INPUT_TYPE_WEEK) && ENABLE_INPUT_TYPE_WEEK
    484506input[type="week"] {
    485507    font-family: monospace;
    486508}
     509#endif
    487510
    488511input::-webkit-datetime-edit {
Note: See TracChangeset for help on using the changeset viewer.