WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
16788
setting the height on a td has no effect
https://bugs.webkit.org/show_bug.cgi?id=16788
Summary
setting the height on a td has no effect
wesleyZeng
Reported
2008-01-08 17:59:34 PST
the height of the "td1" is 156px in QtLauncher, 60px in firefox and opera; <table height="320px" width="600px"> <tr> <td id="td1" align="center" height="120px" bgcolor="red"> <div id="demo" style="height:50%; background-color:blue"></div> </td> </tr> </table>
Attachments
Add attachment
proposed patch, testcase, etc.
Robert Blaut
Comment 1
2008-02-19 01:47:41 PST
You set table height to 320px so the only cell in the table should have also 320px minus border-spacing, padding etc. As the result computed height of td is 312px. And it's true in all tested engines: Webkit, Gecko and Presto. Red background of cell indicates real height of td. You set height of descendant div as 50% so it's calculated based on the definition: "The percentage is calculated with respect to the height of the generated box's containing block." [
http://www.w3.org/TR/CSS21/visudet.html#propdef-height
]. Containing block for the div is td. So a computed height value for the div element should be 156px as it is in Webkit. Other browsers fail this case. The bug report is INVALID.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug