Re: Mixing percentage height and min-height

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.

-Boris

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