RESOLVED INVALID 98415
New value needed for CSS height property
https://bugs.webkit.org/show_bug.cgi?id=98415
Summary New value needed for CSS height property
Nicholas Shanks
Reported 2012-10-04 08:59:06 PDT
The only way to make an element inside a table cell fill the cell's height is to set the height of an ancestor element to a fixed value. This is undesirable and I consider it to be a bug in the CSS specifications. I propose WebKit introduce a new value, -webkit-full (or -webkit-cell-height, or something along those lines). The new value would not make the row height grow, but would just fill any available vertical space (just as 'display:block' fills up any available horizontal space) after the row height has been computed as per current behaviour. Undesired result (but displays correctly per the specs): <!DOCTYPE HTML> <table style="width:10em;table-layout:fixed"><col><col><tr> <td>this cell has loads of (variable) content to make it several lines tall <td><div style="height:100%">not full height of cell</div> </table> Desired option: <!DOCTYPE HTML> <table style="width:10em;table-layout:fixed"><col><col><tr> <td>this cell has loads of content to make it several lines long <td><div style="height:-webkit-full">full height of cell</div> </table> Note, this is not asking for the same thing as bug #5004, bug #12934, or bug #52100
Attachments
Brent Fulgham
Comment 1 2022-07-13 11:13:52 PDT
It seems like this should be addressed in the relevant WG before we attempt to build something in WebKit.
Note You need to log in before you can comment on or make changes to this bug.