Open Bug 626387 Opened 15 years ago Updated 4 years ago

Fixed-height table whose DOM kids are auto-height scrollable blocks expands height to intrinsic height of kids

Categories

(Core :: Layout: Tables, defect)

x86_64
Linux
defect

Tracking

()

People

(Reporter: bugzilla, Unassigned)

Details

Attachments

(2 files, 1 obsolete file)

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110109 Iceweasel/3.6.13 (like Firefox/3.6.13) Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110109 Iceweasel/3.6.13 (like Firefox/3.6.13) CSS size property of a table in the form of for example: height: 100%; is ignored (the result is the same as it would be "auto" or ommited). Reproducible: Always Steps to Reproduce: Have some CSS like this: div.tableContainer { position: absolute; height: 400px; } table.scrollTable { width: 490px; height: 100%; /* adding this makes it work identical in Firefox and Chromium (but then its not what its meant to be display: block; */ } And a TABLE inside a DIV like this: <DIV class="tableContainer"> <TABLE class="scrollTable"> ... rest of table code ... </TABLE> </DIV> Actual Results: The height of the TABLE box is whatever the whole table takes-up. Expected Results: The height of the TABLE box should be 400px - the height of the containing block. When I submit the but, I will attach a sample complete HTML code which reproduces it. In Google Chromium 9.0.597.19 (68937) it works as I would expect it to.
Attached file HTML file reproducing the bug (obsolete) —
Compare the rendering of this HTML file in Firefox and Google Chromium Browser.
Compare the rendering of this HTML file in Firefox and Google Chromium Browser.
Attachment #504429 - Attachment is obsolete: true
Resummarizing to make it clear what's really going on here. David, can we make this work sanely somehow? It's not quite clear to me why we're making the sum of the row heights bigger than the specified height of the table here.... but table height stuff is pretty wacky.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: CSS directive defining a table's size (for example height) in percentage of the containing block is ignored → Fixed-height table whose DOM kids are auto-height scrollable blocks expands height to intrinsic height of kids
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: