Changeset 191751 in webkit


Ignore:
Timestamp:
Oct 29, 2015 1:18:56 PM (8 years ago)
Author:
Wenson Hsieh
Message:

Date input values should not overlap with menu list dropdown button on iOS
https://bugs.webkit.org/show_bug.cgi?id=150681
<rdar://problem/19965078>

Reviewed by Zalan Bujtas.

Source/WebCore:

Adds a right margin on iOS date and time inputs so that the inner div does
not render the value of the date on top of the dropdown button on the right
of the menu list.

Tests: fast/forms/date/date-input-rendering-basic.html

fast/forms/time/time-input-rendering-basic.html

  • css/html.css:

(input::-webkit-date-and-time-value):

LayoutTests:

Tests that date and time inputs render properly. Namely, the text should not
be rendered such that it covers the dropdown button on the right of the menu
list.

  • fast/forms/date/date-input-rendering-basic-expected.txt: Added.
  • fast/forms/date/date-input-rendering-basic.html: Added.
  • fast/forms/time/time-input-rendering-basic-expected.txt: Added.
  • fast/forms/time/time-input-rendering-basic.html: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r191733 r191751  
     12015-10-29  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Date input values should not overlap with menu list dropdown button on iOS
     4        https://bugs.webkit.org/show_bug.cgi?id=150681
     5        <rdar://problem/19965078>
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        Tests that date and time inputs render properly. Namely, the text should not
     10        be rendered such that it covers the dropdown button on the right of the menu
     11        list.
     12
     13        * fast/forms/date/date-input-rendering-basic-expected.txt: Added.
     14        * fast/forms/date/date-input-rendering-basic.html: Added.
     15        * fast/forms/time/time-input-rendering-basic-expected.txt: Added.
     16        * fast/forms/time/time-input-rendering-basic.html: Added.
     17
    1182015-10-29  Ryan Haddad  <ryanhaddad@apple.com>
    219
  • trunk/Source/WebCore/ChangeLog

    r191749 r191751  
     12015-10-29  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Date input values should not overlap with menu list dropdown button on iOS
     4        https://bugs.webkit.org/show_bug.cgi?id=150681
     5        <rdar://problem/19965078>
     6
     7        Reviewed by Zalan Bujtas.
     8
     9        Adds a right margin on iOS date and time inputs so that the inner div does
     10        not render the value of the date on top of the dropdown button on the right
     11        of the menu list.
     12
     13        Tests: fast/forms/date/date-input-rendering-basic.html
     14               fast/forms/time/time-input-rendering-basic.html
     15
     16        * css/html.css:
     17        (input::-webkit-date-and-time-value):
     18
    1192015-10-29  Alex Christensen  <achristensen@webkit.org>
    220
  • trunk/Source/WebCore/css/html.css

    r188653 r191751  
    527527#endif
    528528
    529 #if !(defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS)
    530529input::-webkit-date-and-time-value {
     530#if defined(WTF_PLATFORM_IOS) && WTF_PLATFORM_IOS
     531    margin-right: 18px;
     532#else
    531533    margin: 1px 24px 1px 4px;
    532534    white-space: pre;
    533 }
    534 #endif
     535#endif
     536}
    535537
    536538input::-webkit-inner-spin-button {
Note: See TracChangeset for help on using the changeset viewer.