Bug 35787

Summary: Display of vertical-align: baseline in table with input fields
Product: WebKit Reporter: Joe Holdcroft <info>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: 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/

Description Joe Holdcroft 2010-03-05 02:57:21 PST
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/
Comment 1 Lars-Erik Bruce 2017-06-06 03:41:06 PDT
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.
Comment 2 Brent Fulgham 2022-07-11 17:05:50 PDT
This continues to be a problem 5 years after Lars-Erik's note (12 years!)
Comment 3 Radar WebKit Bug Importer 2022-07-11 17:06:01 PDT
<rdar://problem/96851436>