Date input values should not overlap with menu list dropdown button on iOS
authorwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Oct 2015 20:18:56 +0000 (20:18 +0000)
committerwenson_hsieh@apple.com <wenson_hsieh@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Oct 2015 20:18:56 +0000 (20:18 +0000)
commit424f4e05a9d0a9aef4ebe65e235f8b6867c4710f
treefe7818a5fc5434c7103e024c5a4b216b7d6ce51a
parent0156d752514781f1af082caf73f977c1bf466b9a
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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/date/date-input-rendering-basic-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/date/date-input-rendering-basic.html [new file with mode: 0644]
LayoutTests/fast/forms/time/time-input-rendering-basic-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/time/time-input-rendering-basic.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/html.css