Summary: | KHTML renders child elements with wrong height when unsing min-height in the parent | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Raul Kde Bugzilla <raul_kde_bugzilla> |
Component: | khtml renderer | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | CC: | browserbugs2 |
Priority: | NOR | ||
Version: | 3.4.2 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Raul Kde Bugzilla
2006-10-11 15:40:31 UTC
Percentages in height are treated as 'auto' if height of the containing block is not specified. I asked on www-style@w3.org if min-height would be enough to consider height specified and the first responses seem to be no. So Konqueror's behavior is probably correct. The read of min-height should be (IMO and others) to have AT LEAST "this" height, but if the renderer decides that "this" height is not enought it can grow. If max-height is defined, the "grow" can never pass it. So, with min-height: x; , what you get is from x to +infinity. with max-height: y; , you get is from 0 to y. with both, from x to y. Passing this to the children elements is specially important when designing templates without the need of javascript to correct them. There is no point into specifing a minimal height if they are not passed to the children. This is the whole point of using this. FWIW, in trunk r796129 konqueror's behaviour is the same as firefox 2.0.0.12 > Percentages in height are treated as 'auto' if height of the containing block is not specified. " A percentage height on the root element is relative to the initial containing block. " CSS 2.1, section 10.5 Content height: the 'height' property http://www.w3.org/TR/CSS21/visudet.html#the-height-property " the initial containing block. For continuous media, it has the dimensions of the viewport (...) " CSS 2.1, section 10.1 Definition of "containing block" http://www.w3.org/TR/CSS21/visudet.html#containing-block-details Konqueror 4.5.4 supports correctly and according to CSS 2.1 specification 'min-height: 100%' and 'height: 100%'. http://test.csswg.org/source/contributors/gtalbot/submitted/min-height-percentage-003.htm http://test.csswg.org/suites/css2.1/20101210/html4/min-height-percentage-003.htm (RC4) The problem is NOT with Konqueror 4.5.4 and its handling of 'height: 100%' and 'min-height: 100%'. The problem is with the testcase http://www.dias.com.br/css/css_minheight_test.html itself. "This Text is d irectly in the body." and "Now I am in the first DIV tag." are anonymous block boxes interfering with the intents/expectations of bug reporter. Also, even after removing these, there is still the issue of borders of nested containers which is not taken into account in the testcase. I submit to resolve this bug as INVALID regards, Gérard Resolving as INVALID |