This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26463 - CSS Table Cell Calculated Height
Summary: CSS Table Cell Calculated Height
Status: NEW
Alias: None
Product: CSS
Classification: Unclassified
Component: Style Attributes (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 major
Target Milestone: ---
Assignee: Tantek
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-30 00:22 UTC by Seamus Mulholland
Modified: 2014-07-30 00:22 UTC (History)
1 user (show)

See Also:


Attachments

Description Seamus Mulholland 2014-07-30 00:22:54 UTC
Presently in Google Chrome the calculated CSS height attributes of all table cells within a table row are equal with each table cell having a height attribute equal to the height of the tallest cell in the table row. In Internet Explorer and Firefox the calculated CSS height attribute of each table cell within a table row is different with each table cell having a height attribute reflective of the height of the content contained within the cell. Perhaps going forward it would be preferable to follow Google Chrome's lead. Then each cell within the row would allow for child elements contained within the cells to be fitted to the available space by setting the table cell's CSS position attribute to relative and then the CSS position attribute of the contained child element to absolute such that the child can take on it's parent table cell's CSS width and CSS height attributes. This seems like a sensible course to take considering that users seeking the CSS height value of the content contained within a cell could simply wrap the content in a div wrapper. Perhaps there could even be a CSS content-height attribute?

As I say Google Chrome already has taken-on this approach, and the benefit is as set-out in the above paragraph, namely that after a long time there finally is a solution in Google Chrome to getting child elements to fill-out the available space within a parent table cell.