Closed
Bug 817025
Opened 12 years ago
Closed 11 years ago
css max-height percents and calc don't work on a div
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: akelman, Unassigned)
Details
Attachments
(1 file)
299 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20121130 Firefox/20.0 Build ID: 20121130030747 Steps to reproduce: Tried in Firefox 17, 18b, and 20 nightly on Fedora 14 x64 div styling seems to ignore max-height directives using calc or percents. If you set a fixed pixel quantity it works. The attached file demonstrates the problem. It works in Chrome (via the -webkit-calc). Actual results: Div height is unbounded. Expected results: Div height should be bounded to specified percentage or calc value.
Updated•12 years ago
|
Attachment #687154 -
Attachment mime type: text/plain → text/html
Comment 1•12 years ago
|
||
because, height is not specified in the containing block(body in this case) http://www.w3.org/TR/CSS21/visudet.html#min-max-heights "<percentage> Specifies a percentage for determining the used value. The percentage is calculated with respect to the height of the generated box's containing block. If the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the percentage value is treated as '0' (for 'min-height') or 'none' (for 'max-height')."
Component: Untriaged → Layout
Product: Firefox → Core
Comment 2•12 years ago
|
||
Indeed. The page is in quirks mode, which is presumably why it might work in WebKit, but I don't think we want to extend the percentage height quirks to calc().
Updated•11 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•