Bug 98415
Summary: | New value needed for CSS height property | ||
---|---|---|---|
Product: | WebKit | Reporter: | Nicholas Shanks <nickshanks> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | bfulgham |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Nicholas Shanks
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Brent Fulgham
It seems like this should be addressed in the relevant WG before we attempt to build something in WebKit.