Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

19434878: display: block makes temporal input values vertically misaligned on iOS #11226

Open
openradar-mirror opened this issue Apr 14, 2016 · 0 comments

Comments

@openradar-mirror
Copy link

Description

Summary:
In Safari for iOS 8.1, applying display: block; to temporal s, (i.e. s of type="date" , type="time" , type="datetime-local" , or type="month") causes the 's value text to become vertically top-aligned instead of vertically centered.
This does not match the behavior of other browsers (specifically: OS X Firefox, OS X Chrome, and OS X Safari).

Steps to Reproduce:

  1. Open http://jsbin.com/janaz/4 in iOS Safari
  2. Observe that the 1st in each section, which has a display: block; CSS style applied to it,
    has its text aligned to the top of the 's box.
    Compare this to the 2nd in each section,
    which has its default display left at its default value,
    and which has its text vertically centered within the 's box.

Expected Results:
All the s in the example should have their text vertically centered. See 2nd attached screenshot (taken in Chrome) that shows the correct behavior.

Actual Results:
All the s in the example should have their text vertically top-aligned.

Version:
iOS 8.1

Notes:
Firefox and OS X Safari behave the same as Chrome.

WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=139848

Original Bootstrap bug reports:

Configuration:

Attachments:
'safaribug.png' and 'correct_chrome.png' were successfully uploaded.

Product Version: iOS 8.1
Created: 2015-01-10T03:00:52.425225
Originated: 2015-01-09T00:00:00
Open Radar Link: http://www.openradar.me/19434878

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant