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

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

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 13 Oct 2006 18:14:39 +0000 (UTC)
To: "L. David Baron" <dbaron@dbaron.org>
Cc: www-style@w3.org
Message-ID: <Pine.LNX.4.62.0610131813380.18283@dhalsim.dreamhost.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:47 GMT