W3C home > Mailing lists > Public > www-style@w3.org > August 2003

Re: CSS3 box height %

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 12 Aug 2003 12:49:47 -0400
Message-Id: <200308121649.MAA04100@no-knife.mit.edu>
To: "Bryan C. Mills" <bmills@andrew.cmu.edu>
cc: www-style@w3.org

> Rather than defining percentages to be 'auto' for blocks whose parents
> have height 'auto', I think percentages should be treated as the
> percentage of the 'auto' height of the containing block

The 'auto' height of the parent depends on the computed height of the child
(since the intrinsic height of the parent depends on the computed height of the
child), so this is a circular definition.

In your proposed scheme, what is the expected layout (the heights of all four
divs, in em) of the following?

<div id="parent" style="height: auto">
  <div id="child1" style="height: 10em" />
  <div id="child2" style="height: 70%" />
  <div id="child3" style="height: 70%" />
</div>

(Assuming that min-height is 0 and max-height is 'none' throughout.)

Boris
-- 
Ninety-Ninety Rule of Project Schedules:

The first ninety percent of the task takes ninety
percent of the time, and the last ten percent takes the
other ninety percent.
Received on Tuesday, 12 August 2003 12:53:36 GMT

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