Skip to content

Commit 1299d3e

Browse files
committed
[css2] Better description of auto height for floats and abs. pos. elts., as
decided at Oslo ftf. --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402136
1 parent 8c11a47 commit 1299d3e

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

css2/visudet.src

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: visudet.src,v 2.74 2003-08-24 22:09:56 bbos Exp $ -->
3+
<!-- $Id: visudet.src,v 2.75 2003-08-25 08:20:54 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Visual formatting model details</title>
@@ -853,15 +853,17 @@ applies.</p>
853853

854854
<ol>
855855
<li>'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the
856-
height is based on the content, set 'auto' values for 'margin-top' and
856+
height is based on the content (see <a href="#flow-root-height">"auto
857+
height..."</a>), set 'auto' values for 'margin-top' and
857858
'margin-bottom' to 0, and solve for 'top'</li>
858859

859860
<li>'top' and 'bottom' are 'auto' and 'height' is not 'auto', then
860861
set 'top' to the static position, set 'auto' values for 'margin-top'
861862
and 'margin-bottom' to 0, and solve for 'bottom'</li>
862863

863864
<li>'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the
864-
height is based on the content, set 'auto' values for 'margin-top' and
865+
height is based on the content (see <a href="#flow-root-height">"auto
866+
height..."</a>), set 'auto' values for 'margin-top' and
865867
'margin-bottom' to 0, and solve for 'bottom'</li>
866868

867869
<li>'top' is 'auto', 'height' and 'bottom' are not 'auto', then set
@@ -922,8 +924,13 @@ value.
922924
class="propinst-margin-bottom">'margin-bottom'</span> are 'auto',
923925
their used value is 0. If <span
924926
class="propinst-height">'height'</span> is 'auto', the height depends
925-
on the element's descendants:
927+
on the element's descendants, see the next section.
926928
</p>
929+
930+
931+
<h3><a name="flow-root-height">'Auto' height for floats and absolutely
932+
positioned elements</a></h3>
933+
927934
<p>If it only has inline-level children, the height is the distance
928935
between the top of the topmost line box and the bottom of the
929936
bottommost line box.
@@ -938,14 +945,15 @@ positioned boxes are considered without their offset. Note that the
938945
child box may be an <a
939946
href="visuren.html#anonymous-block-level">anonymous block box.</a>
940947
</p>
941-
<p>In addition, if the element has any floating descendants whose top
942-
margin edge is above the top established above or whose bottom margin
948+
<p>In addition, if the element has any floating descendants whose
949+
bottom margin
943950
edge is below the bottom, then the height is increased to include
944951
those edges. Only floats that are children of the element itself or of
945952
descendants in the normal flow are taken into account, i.e., floats
946953
inside absolutely positioned descendants are not.
947954
</p>
948955

956+
949957
<h2><a name="min-max-heights">Minimum and maximum heights</a>: <span
950958
class="propinst-min-height">'min-height'</span> and <span
951959
class="propinst-max-height">'max-height'</span></h2>

0 commit comments

Comments
 (0)