Skip to content

Commit 6c90305

Browse files
committed
[css2] Added issue 225, already discussed by WG before PR request, now OK'ed
by Director. --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%403219
1 parent 006b3aa commit 6c90305

2 files changed

Lines changed: 64 additions & 23 deletions

File tree

css2/changes.src

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: changes.src,v 2.161 2011-05-25 23:10:10 bbos Exp $ -->
3+
<!-- $Id: changes.src,v 2.162 2011-05-26 18:38:45 bbos Exp $ -->
44
<HEAD>
55
<TITLE>Changes</TITLE>
66
<script src="./annotate.js#CSS21_DEV" type="text/javascript" defer></script>
@@ -7730,7 +7730,53 @@ floated box is reflowed in the <del>first available</del>
77307730
<ins>same</ins> line on the other side of the float.
77317731
</blockquote>
77327732

7733+
<!--========================== issue 225 ==========================-->
77337734

7735+
<h3 id="t.10.6.3"><a
7736+
href="/TR/2009/CR-CSS2-20090908//visudet.html#normal-block">10.6.3
7737+
Block-level non-replaced elements in normal flow when 'overflow'
7738+
computes to 'visible'</a></h3>
7739+
7740+
<p>Removed redundancy (the top edge was already defined elsewhere) and
7741+
made the implied cases for the bottom edge explicit:
7742+
7743+
<blockquote>
7744+
<p><del>If it only has inline-level children, the height is the
7745+
distance between the top of the topmost line box and the bottom of the
7746+
bottommost line box.</del>
7747+
7748+
<p><del>If it has block-level children, the height is the distance
7749+
between the top border-edge of the topmost block-level child box that
7750+
does not have margins collapsed through it and the bottom border-edge
7751+
of the bottommost block-level child box that does not have margins
7752+
collapsed through it. However, if the element has a non-zero top
7753+
padding and/or top border, or is the root element, then the content
7754+
starts at the top margin edge of the topmost child. (The first case
7755+
expresses the fact that the top and bottom margins of the element
7756+
collapse with those of the topmost and bottommost children, while in
7757+
the second case the presence of the padding/border prevents the top
7758+
margins from collapsing.) Similarly, if the bottom margin of the
7759+
block does not collapse with the bottom margin of its last in-flow
7760+
child, then the content ends at the bottom margin edge of the
7761+
bottommost child.</del>
7762+
7763+
<p><ins>The element's height is the distance from its top content edge
7764+
to the first applicable of the following:</ins>
7765+
7766+
<ol>
7767+
<li><ins>the bottom edge of the last line box, if the box
7768+
establishes a inline formatting context with one or more lines</ins>
7769+
7770+
<li><ins>the bottom edge of the bottom (possibly collapsed) margin
7771+
of its last in-flow child, if the child's bottom margin does not
7772+
collapse with the element's bottom margin</ins>
7773+
7774+
<li><ins>the bottom border edge of the last in-flow child whose top
7775+
margin doesn't collapse with the element's bottom margin</ins>
7776+
7777+
<li><ins>zero, otherwise</ins>
7778+
</ol>
7779+
</blockquote>
77347780

77357781
</BODY>
77367782
</HTML>

css2/visudet.src

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: visudet.src,v 2.168 2011-05-25 23:10:11 bbos Exp $ -->
3+
<!-- $Id: visudet.src,v 2.169 2011-05-26 18:39:05 bbos Exp $ -->
44
<head>
55
<title>Visual formatting model details</title>
66
<script src="./annotate.js#CSS21_DEV" type="text/javascript" defer></script>
@@ -973,28 +973,23 @@ class="propinst-height">'height'</span> is 'auto', the height depends
973973
on whether the element has any block-level children and whether it has
974974
padding or borders:
975975
</p>
976-
<p>If it only has inline-level children, the height is the distance
977-
between the top of the topmost line box and the bottom of the
978-
bottommost line box.
979-
</p>
980-
<p>If
981-
it has block-level children, the height is the distance between the
982-
top border-edge of the topmost block-level child box that does not have
983-
<a href="box.html#collapsed-through">margins collapsed through it</a>
984-
and the bottom border-edge of the bottommost block-level child box
985-
that does not have margins collapsed through it. However, if the
986-
element has a non-zero top padding and/or top border, or is the root
987-
element, then the content
988-
starts at the top <em>margin</em> edge of the topmost child. (The
989-
first case expresses the fact that the top and bottom margins of the
990-
element <a href="box.html#collapsing-margins">collapse</a> with those
991-
of the topmost and bottommost children, while in the second case the
992-
presence of the padding/border prevents the top margins from <a
993-
href="box.html#collapsing-margins">collapsing</a>.) Similarly, if the
994-
bottom margin of the block does not collapse with the bottom margin of
995-
its last in-flow child, then the content ends at the bottom margin
996-
edge of the bottommost child.
997976

977+
<p>The element's height is the distance from its top content edge to
978+
the first applicable of the following:
979+
980+
<ol>
981+
<li>the bottom edge of the last line box, if the box establishes a
982+
inline formatting context with one or more lines
983+
984+
<li>the bottom edge of the bottom (possibly collapsed) margin of its
985+
last in-flow child, if the child's bottom margin does not collapse
986+
with the element's bottom margin
987+
988+
<li>the bottom border edge of the last in-flow child whose top
989+
margin doesn't collapse with the element's bottom margin
990+
991+
<li>zero, otherwise
992+
</ol>
998993

999994
<p>Only children in the normal flow are taken into account (i.e.,
1000995
floating boxes and absolutely positioned boxes are ignored, and

0 commit comments

Comments
 (0)