Bug 23544

Summary: The baseline of an 'inline-table' is the baseline of the first row of the table
Product: WebKit Reporter: Gérard Talbot <browserbugs2>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: robert
Priority: P2    
Version: 525.x (Safari 3.2)   
Hardware: PC   
OS: Windows XP   
URL: http://www.gtalbot.org/BrowserBugsSection/Safari3Bugs/baseline-inline-table-vertical-align.html

Description Gérard Talbot 2009-01-26 02:16:42 PST
Description: 
In Safari 3.2 build 525.26.13, the baseline of an 'inline-table' is NOT the baseline of the first row of the table. 
According to CSS 2.1, the baseline of an 'inline-table' should be the baseline of the first row of the table.

Steps to reproduce:
Load provided URL

Expected results:
__Baseline_of_first_row_of_table__ should be vertically aligned with ___text baseline___ on both sides. The underscore characters of the anonymous text nodes should adjoin, should meet, should vertically line up with the underscore characters of the cell of first row of inline-table. 

Actual results in Konqueror 4.1.3 and in Safari 3.2 build 525.26.13:
The margin bottom edge of the inline-table is aligned with ___text baseline___ on both sides. The underscore characters of the anonymous text nodes do not adjoin, do not meet, do not vertically line up with the underscore characters of the cell of first row of inline-table. 

References: 
"(...) The baseline of an 'inline-table' is the baseline of the first row of the table."
coming from CSS 2.1, section 10.8.1 Leading and half-leading, vertical-align http://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align 

"The 'vertical-align' property of each table cell determines its alignment within the row. (...) The baseline of the cell is put at the same height as the baseline of the first of the rows it spans (...)"
coming from CSS 2.1, section 17.5.3 Table height algorithms 
http://www.w3.org/TR/CSS21/tables.html#height-layout 

Notes: 
- Internet Explorer 8 pre-RC1 Partner Build 18344, Firefox 3.0.5, Opera 9.63, Opera 10.0 alpha build 1229 all pass the provided testcase. 
- More advanced or complex tests can be found at Vertical alignment of inline table testpage 
http://geocities.com/csssite/operabugs/bug34.xml 
from George Chavchanidze 
- I searched for a DUPLICATE and did not find any
- The component for this bug could have been Layout and Rendering; make change if necessary
- This bug may be dependent on bug 4350 (Implement baseline alignment support for table cells)
- This bug has also been filed for Konqueror at
http://bugs.kde.org/show_bug.cgi?id=181963

Regards, Gérard
Comment 2 Robert Hogan 2012-05-24 10:23:12 PDT
This was fixed by bug 84167.