Re: CSS3 box height %

> 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 UTC