Bug 198959

Summary: input[type=date] with empty value has shrunken height
Product: WebKit Reporter: roman.balaban
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, akeerthi, basuke, bfulgham, cdumez, karlcow, martijn.cuppens, simon.fraser, timothy, webkit-bug-importer, wenson_hsieh, zalan
Priority: P2 Keywords: InRadar
Version: Safari 12   
Hardware: iPhone / iPad   
OS: iOS 12   

roman.balaban
Reported 2019-06-18 03:33:29 PDT
The input[type=date] element with empty value has shrunken height on iOS. You can check this using this markup: <input type="date"> and the following CSS rule: input { -webkit-appearance: none; } See the https://jsfiddle.net/go9b61L0/ example on iOS device.
Attachments
Radar WebKit Bug Importer
Comment 1 2019-06-18 07:04:48 PDT
Martijn Cuppens
Comment 2 2020-10-29 03:07:57 PDT
This is fixable by adding a height to the `::-webkit-date-and-time-value` pseudo element. ``` input::-webkit-date-and-time-value { height: 1.5em; } ``` This also happens to the `::-webkit-inner-spin-button` pseudo element as I noticed here (https://opensource.apple.com/source/WebCore/WebCore-7602.4.6/css/html.css.auto.html).
Note You need to log in before you can comment on or make changes to this bug.