| Summary: | Input datetime-local with display: inline-block and a big line-height shows the widget aligned to the top | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | collimarco91 | ||||||||
| Component: | Forms | Assignee: | Nobody <webkit-unassigned> | ||||||||
| Status: | NEW --- | ||||||||||
| Severity: | Normal | CC: | cdumez, karlcow, webkit-bug-importer, wenson_hsieh | ||||||||
| Priority: | P2 | Keywords: | BrowserCompat, InRadar | ||||||||
| Version: | Safari 16 | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | macOS 13 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
collimarco91
2023-08-30 02:56:48 PDT
collimarco91: It would help if you could provide a minimal test case. Thanks. Created attachment 467489 [details]
rendering in Safari, firefox, chrome
With
data:text/html,<meta charset=utf-8><input type="datetime-local" style="display:inline-block">
aka
<input type="datetime-local" style="display:inline-block">
I get the following rendering.
What is the issue?
What were you expecting?
Here's the issue: https://codepen.io/collimarco/pen/JjwXLQP In particular it seems that the bug is caused by display: inline-block; in combination with line-height Created attachment 467779 [details]
rendering in Safari, firefox, chrome
ok thanks, here a reduced test case showing what is happening.
Basically specifying a bigger line-height doesn't modify the position of the date widget.
Created attachment 467780 [details]
testcase
The test case
|