Closed
Bug 303384
Opened 19 years ago
Closed 9 years ago
Firefox expands table over parent (DIV) even with style="height:100%;max-height:100%"
Categories
(Core :: Layout: Tables, defect)
Core
Layout: Tables
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: tivv00, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
|
2.02 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.7.10) Gecko/20050720 Firefox/1.0.6 Build Identifier: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.7.10) Gecko/20050720 Firefox/1.0.6 I am trying to make a scrollable column of a table. No luck - the main problem is that page expands no matter that it get's style height:100% and even max-height:100%. Also note that table is not in the body, but in the DIV that has correct size (and table overflows it). Actually I am not sure if it is height or overflow is not working. Reproducible: Always Steps to Reproduce: 1. Open the page provided 2. Make it not fit the screen Actual Results: See table goes longer then the Expected Results: The DIV with overflow:hidded should be cropped. Or better TD with same overflow. And in no way the table should be larger then max-height. See the attachment
| Reporter | ||
Comment 1•19 years ago
|
||
Comment 2•19 years ago
|
||
"The 'height' property on 'table' boxes is treated as a minimum height." --http://www.w3.org/TR/CSS21/tables.html#height-layout If I'm reading #height-layout right, height: 100% is only a minimum height, so the 100% doesn't propagate to <table>'s children and, therefore, overflow:hidden; never works because height:100% on the <div> is its parent's height and there is no overflow.
| Reporter | ||
Comment 3•19 years ago
|
||
1) What about max-height. Should not table obey it? 2) 1.7.5.3 same URL ... The height of a 'table-row' element's box is calculated once the user agent has all the cells in the row available: it is the maximum of the row's specified 'height' and the minimum height (MIN) required by the cells. A 'height' value of 'auto' for a 'table-row' means the row height used for layout is MIN. MIN depends on cell box heights and cell box alignment (much like the calculation of a line box height). Percentage heights on table cells, table rows, and table row groups compute to 'auto'. ... And as for me "min" for any block whose size is defined as percentage of the parent is 0. This means thios long cell should have min-height=0 (if not explicity stated), and so table should be of correct size (it does not need to be longer).
Comment 4•19 years ago
|
||
Not OS/2 specific.
Component: General → Layout
OS: OS/2 → All
Product: Firefox → Core
QA Contact: general → layout
Hardware: PC → All
Version: unspecified → Trunk
Updated•19 years ago
|
Component: Layout → Layout: Tables
QA Contact: layout → layout.tables
This bug is really annoying, because it prevents me from working around bug 814985. It's unfortunate there are so many table height calculation bugs!
The testcase behaves exactly the same in Chrome 44 and Explorer 11. I'd be inclined to say it's not a bug in Firefox. Maybe the W3C specification needs to be reworded.
FF, GC, IE, Safari all render the testcase the same.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•