W3C home > Mailing lists > Public > www-style@w3.org > October 2006

Re: Mixing percentage height and min-height

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Wed, 11 Oct 2006 19:01:13 -0500
Message-ID: <452D85C9.6080806@mit.edu>
To: Ian Hickson <ian@hixie.ch>
CC: www-style@w3.org

Ian Hickson wrote:
>> 5)  Otherwise, apply section 10.6.3 to the parent with a computed height
>>     of "100px" for the parent.
> Used height, not computed height.

That's not what the spec says:

   # If the resulting height is smaller than 'min-height', the rules above are
     applied again, but this time using the value of 'min-height' as the computed
     value for 'height'.

Note that last part.

> No, the height of the containing block is not specified explicitly (i.e., 
> it depends on content height), and the element in question is not 
> absolutely positioned, so the value computes to 'auto', regardless of 
> min-height and max-height.

That's not obvious from the spec, really.

Might want to clarify section 10.7 to make this clearer.  And/or clarify section
10.5 to make it clear that "the height of the generated box's containing block" 
doesn't mean its computed height.

Received on Thursday, 12 October 2006 00:01:23 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:26 UTC