-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Date Input has incorrect sizing in Safari #34433
Comments
Made a reduced test case on CodePen so I can confirm with BrowserStack: I'm unable to find out what's happening here, for now. |
I did some digging before filing the issue, it's quite bizarre to me (but CSS isn't really my regular gig). The shadow DOM for browser-defined parts of the element don't show as having the extra space (although they do have Screenshots from Safari inspector showing the details for the input and the root div inside the shadow DOM. Let me know if there's any more info/tests/debugging I can help with from a 'real' safari. |
Updated demo on codepen (previous one has a broken CSS link) |
Doing some digging, the trigger for this is the I've filed a webkit bug about this: https://bugs.webkit.org/show_bug.cgi?id=236352 |
This one is super rough because the |
This can be fixed from the webkit pseudo-element
|
* Prevent extraneous whitespace around date time inputs in Webkit Closes #34433 * Updated bundlewatch config
Now, this worked like magic! Thank you so much, Safari was really ruining my day. |
In Safari 14.1 (on macOS Big Sur) the following will render 'incorrectly' on Safari - the date input element is over-sized.
The issue isn't related to having another column or another field - but having a regular text input helps to highlight the sizing bug.
FF seems to render it correctly.
The text was updated successfully, but these errors were encountered: