Re: Does min-height>max-height count as a basis for percentage heights?

On Fri, 13 Oct 2006, L. David Baron wrote:
>
> So the case that I think is currently ambiguous is the following:
> 
> div.parent { max-height: 20px; min-height: 100px; }
> div.child { height: 50%; }
>
> Does a ['min-height','max-height'] range that constrains the height to a 
> single value (in this case, 100px) count as "specified explicitly" even 
> when 'height' is 'auto'?  In other words, does the child in this case 
> have 'auto' height or '50px' height?

'auto', since the height of the containing block is not specified 
explicitly (it is forced to a value by the min/max properties).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 13 October 2006 18:14:45 UTC