Bug 35787
Summary: | Display of vertical-align: baseline in table with input fields | ||
---|---|---|---|
Product: | WebKit | Reporter: | Joe Holdcroft <info> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | ahmad.saleem792, bart, bfulgham, lars-erik, lizmitchell, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://joeholdcroft.com/webkit-form-table-bug/ |
Joe Holdcroft
When setting veritcal-align: baseline; on table cells, and including a label in a cell then next to it an input for that label in the next cell, if the value of the input it set to nothing, or not set, there is excess spacing added around the input which makes the label appear lower down.
See this simple test case for further detail:
http://joeholdcroft.com/webkit-form-table-bug/
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Lars-Erik Bruce
Seven years later, and this is still a bug in Safari. I have a small reproduction of the bug here:
https://jsfiddle.net/lebbe/mao4cmfL/
No other browsers have this odd behaviour when combining vertical-align: baseline on table cells, with display: block in input elements inside the table cell.
Brent Fulgham
This continues to be a problem 5 years after Lars-Erik's note (12 years!)
Radar WebKit Bug Importer
<rdar://problem/96851436>
bart
See also https://bugs.webkit.org/show_bug.cgi?id=142968 which talks of the same bug appearing in a flex context.
Ahmad Saleem
It seems to not happen on Safari Technology Preview 227 but jump or shift happens on Safari 18.6 when we type text in second field. So I think we fixed it already in STP.