Skip to content

Commit 9efcc3c

Browse files
committed
[css2] Generated. Do not edit!
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%403257
1 parent efd667e commit 9efcc3c

10 files changed

Lines changed: 139 additions & 115 deletions

File tree

css2/box.html

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,11 @@ <H3>8.3.1 <a name="collapsing-margins">Collapsing margins</a></H3>
376376
margins collapse with the adjoining margins of following siblings
377377
but that resulting margin does not collapse with the bottom margin
378378
of the parent block.
379+
380+
<LI>If the top margin of a box with non-zero computed
381+
'min-height' and 'auto' computed 'height' collapses with the
382+
bottom margin of its last in-flow child, then the child's bottom
383+
margin does not collapse with the parent's bottom margin.
379384
</UL>
380385

381386
<P>Horizontal margins never collapse.
@@ -449,12 +454,16 @@ <H3>8.3.1 <a name="collapsing-margins">Collapsing margins</a></H3>
449454
first in-flow block-level child's top margin if the element has no
450455
top border, no top padding, and the child has no clearance.
451456

452-
<LI>The bottom margin of an in-flow block box with a <a href="visudet.html#propdef-height" class="noxref"><span
453-
class="propinst-height">'height'</span></a> of 'auto' and a <a href="visudet.html#propdef-min-height" class="noxref"><span
454-
class="propinst-min-height">'min-height'</span></a> of zero collapses
455-
with its last in-flow block-level child's bottom margin if the box
456-
has no bottom padding and no bottom border and the child's bottom
457-
margin does not collapse with a top margin that has clearance.
457+
<LI>The bottom margin of an in-flow block box with a 'height' of
458+
'auto' collapses with its last in-flow block-level child's bottom
459+
margin, if:
460+
<UL>
461+
<LI>the box has no bottom padding, and
462+
<LI>the box has no bottom border, and
463+
<LI>the child's bottom margin neither collapses with a top margin
464+
that has clearance, nor (if the box's min-height is non-zero)
465+
with the box's top margin.
466+
</UL>
458467

459468
<LI>A box's own margins collapse if the <a href="visudet.html#propdef-min-height" class="noxref"><span
460469
class="propinst-min-height">'min-height'</span></a> property is zero,

css2/cascade.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ <h3>6.1.1 <span class="index-def" title="specified value">
7373

7474
<ol>
7575
<li>If the <a href="#cascade">cascade</a> results in a value, use it.
76-
But if the cascade results in 'inherit', the specified value is as
77-
explained in <a href="#value-def-inherit" >“The 'inherit' value.”</a>
76+
Except that, if the value is 'inherit', the specified value is defined
77+
in <a href="#value-def-inherit" >“The 'inherit' value”</a> below.
78+
7879
<li>Otherwise, if the property is <a href="#inheritance">inherited</a> and the element is not the root of the <a>document tree</a>, use the computed value of the parent element.
7980
<li>Otherwise use the property's <a name="x1"><span class="index-def" title="initial value">initial value</span></a>. The initial value of each property is indicated in the property's definition.
8081
</ol>

css2/css2.html

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5827,8 +5827,9 @@ <h3>6.1.1 <span class="index-def" title="specified value">
58275827

58285828
<ol>
58295829
<li>If the <a href="#cascade">cascade</a> results in a value, use it.
5830-
But if the cascade results in 'inherit', the specified value is as
5831-
explained in <a href="#value-def-inherit" >“The 'inherit' value.”</a>
5830+
Except that, if the value is 'inherit', the specified value is defined
5831+
in <a href="#value-def-inherit" >“The 'inherit' value”</a> below.
5832+
58325833
<li>Otherwise, if the property is <a href="#inheritance">inherited</a> and the element is not the root of the <a>document tree</a>, use the computed value of the parent element.
58335834
<li>Otherwise use the property's <a name="x1"><span class="index-def" title="initial value">initial value</span></a>. The initial value of each property is indicated in the property's definition.
58345835
</ol>
@@ -6937,6 +6938,11 @@ <H3>8.3.1 <a name="collapsing-margins">Collapsing margins</a></H3>
69376938
margins collapse with the adjoining margins of following siblings
69386939
but that resulting margin does not collapse with the bottom margin
69396940
of the parent block.
6941+
6942+
<LI>If the top margin of a box with non-zero computed
6943+
'min-height' and 'auto' computed 'height' collapses with the
6944+
bottom margin of its last in-flow child, then the child's bottom
6945+
margin does not collapse with the parent's bottom margin.
69406946
</UL>
69416947

69426948
<P>Horizontal margins never collapse.
@@ -7010,12 +7016,16 @@ <H3>8.3.1 <a name="collapsing-margins">Collapsing margins</a></H3>
70107016
first in-flow block-level child's top margin if the element has no
70117017
top border, no top padding, and the child has no clearance.
70127018

7013-
<LI>The bottom margin of an in-flow block box with a <a href="visudet.html#propdef-height" class="noxref"><span
7014-
class="propinst-height">'height'</span></a> of 'auto' and a <a href="visudet.html#propdef-min-height" class="noxref"><span
7015-
class="propinst-min-height">'min-height'</span></a> of zero collapses
7016-
with its last in-flow block-level child's bottom margin if the box
7017-
has no bottom padding and no bottom border and the child's bottom
7018-
margin does not collapse with a top margin that has clearance.
7019+
<LI>The bottom margin of an in-flow block box with a 'height' of
7020+
'auto' collapses with its last in-flow block-level child's bottom
7021+
margin, if:
7022+
<UL>
7023+
<LI>the box has no bottom padding, and
7024+
<LI>the box has no bottom border, and
7025+
<LI>the child's bottom margin neither collapses with a top margin
7026+
that has clearance, nor (if the box's min-height is non-zero)
7027+
with the box's top margin.
7028+
</UL>
70197029

70207030
<LI>A box's own margins collapse if the <a href="visudet.html#propdef-min-height" class="noxref"><span
70217031
class="propinst-min-height">'min-height'</span></a> property is zero,
@@ -11524,14 +11534,10 @@ <h2>10.7 <a name="min-max-heights">Minimum and maximum heights</a>: <a href="vis
1152411534
</li>
1152511535
</ol>
1152611536

11527-
<p class="note">These steps do not affect the real computed values of
11528-
the above properties. The change of used <a href="visudet.html#propdef-height" class="noxref"><span
11529-
class="propinst-height">'height'</span></a> has no effect on margin
11530-
collapsing except as specifically required by rules for <a href="visudet.html#propdef-min-height" class="noxref"><span
11531-
class="propinst-min-height">'min-height'</span></a> or <a href="visudet.html#propdef-max-height" class="noxref"><span
11532-
class="propinst-max-height">'max-height'</span></a> in <a
11533-
href="box.html#collapsing-margins">"Collapsing margins"
11534-
(8.3.1).</a></p>
11537+
<p class="note">These steps do not affect the real computed value of
11538+
<a href="visudet.html#propdef-height" class="noxref"><span class="propinst-height">'height'</span></a>. Consequently, for
11539+
example, they do not affect margin collapsing, which depends on the
11540+
computed value.
1153511541

1153611542
<p>However, for replaced elements with both <a href="visudet.html#propdef-width" class="noxref"><span
1153711543
class="propinst-width">'width'</span></a> and <a href="visudet.html#propdef-height" class="noxref"><span

css2/diffs-rec/box.html

Lines changed: 41 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -362,31 +362,36 @@ <H3>8.3.1 <a name="collapsing-margins">Collapsing margins</a></H3>
362362
<P>In <del>this specification,</del><ins>CSS,</ins> the <del>expression collapsing margins means that</del>adjoining margins <del>(no padding or border areas separate them)</del>of two or more boxes (which <del>may be next to one another</del><ins>might</ins> or
363363
<del>nested)</del><ins>might not be siblings) can</ins> combine to form a single margin. <del>In CSS2, horizontal margins never collapse. Vertical</del>Margins
364364
<del>may</del><ins>that combine this way are said to</ins> <dfn><a name="x26"><span
365-
class="index-def">collapse</span></a></dfn> <del>between certain boxes: Two or more</del><ins>, and the
366-
resulting combined margin is called a</ins> <dfn><a name="x27"><span class="index-def"
367-
title="collapsing margin"><ins>collapsed margin</ins></span></a></dfn><ins>.</ins>
365+
class="index-def">collapse</span></a></dfn> <del>between certain boxes: Two or more adjoining vertical margins of block boxes in the normal flow collapse.</del><ins>, and</ins> the
366+
resulting <ins>combined</ins> margin <del>width</del>is <del>the maximum of the adjoining</del><ins>called a</ins> <dfn><a name="x27"><span class="index-def"
367+
title="collapsing margin"><ins>collapsed</ins> margin</span></a></dfn> <del>widths. In the case</del><ins>.</ins>
368368

369-
<P>Adjoining vertical margins <ins>collapse, except:</ins>
369+
<P><ins>Adjoining vertical margins collapse, except:</ins>
370370

371371
<UL>
372-
<LI><ins>Margins</ins> of <del>block boxes in</del>the <del>normal flow</del><ins>root element's box do not</ins> collapse.
372+
<LI><ins>Margins</ins> of <del>negative margins,</del>the <del>absolute maximum</del><ins>root element's box do not collapse.</ins>
373373

374-
<LI><ins>If</ins> the <del>resulting margin width is the maximum</del><ins>top and bottom margins</ins> of <ins>an element with</ins> <a
374+
<LI><ins>If the top and bottom margins</ins> of <ins>an element with</ins> <a
375375
href="visuren.html#clearance"><ins>clearance</ins></a> <ins>are adjoining, its
376-
margins collapse with</ins> the adjoining <del>margin widths. In the case</del><ins>margins</ins> of <del>negative margins,</del><ins>following siblings
377-
but that resulting margin does not collapse with</ins> the <del>absolute maximum</del><ins>bottom margin</ins>
378-
of the <del>negative adjoining</del><ins>parent block.</ins>
376+
margins collapse with</ins> the <del>negative</del>adjoining margins <del>is deducted from</del><ins>of following siblings
377+
but that resulting margin does not collapse with</ins> the <del>maximum</del><ins>bottom margin</ins>
378+
of the <del>positive adjoining margins.</del><ins>parent block.</ins>
379+
380+
<LI>If <del>there are no positive margins,</del>the <del>absolute maximum</del><ins>top margin</ins> of <del>the negative adjoining margins is deducted from zero. Vertical margins between</del>a <del>floated</del>box <ins>with non-zero computed
381+
'min-height'</ins> and <del>any other box do</del><ins>'auto' computed 'height' collapses with the
382+
bottom margin of its last in-flow child, then the child's bottom
383+
margin does</ins> not <ins>collapse with the parent's bottom margin.</ins>
379384
</UL>
380385

381-
<P><ins>Horizontal</ins> margins <del>is deducted from the maximum of the positive</del><ins>never collapse.</ins>
386+
<P><ins>Horizontal margins never</ins> collapse.
382387

383-
<P ID="what-is-adjoining"><ins>Two margins are</ins> <a name="x28"><span class="index-def"
384-
title="adjoining margins"><DFN>adjoining</DFN></span></a> <del>margins.</del>if <del>there are no positive margins,</del><ins>and only if:</ins>
388+
<P ID="what-is-adjoining"><ins>Two</ins> margins <del>of absolutely</del><ins>are</ins> <a name="x28"><span class="index-def"
389+
title="adjoining margins"><DFN><ins>adjoining</ins></DFN></span></a> <ins>if</ins> and <del>relatively positioned</del><ins>only if:</ins>
385390

386391
<UL>
387392
<LI><ins>both belong to in-flow</ins> <a
388-
href="visuren.html#block-boxes"><ins>block-level boxes</ins></a> <ins>that
389-
participate in</ins> the <del>absolute maximum</del><ins>same</ins> <a
393+
href="visuren.html#block-boxes"><ins>block-level</ins> boxes</a> <del>do not collapse. Please consult the examples</del><ins>that
394+
participate in the same</ins> <a
390395
href="visuren.html#block-formatting"><ins>block formatting context</ins></a>
391396

392397
<LI><ins>no line boxes, no clearance, no padding and no border separate
@@ -395,19 +400,19 @@ <H3>8.3.1 <a name="collapsing-margins">Collapsing margins</a></H3>
395400
boxes</ins></a> <ins>(see</ins> <a href="visuren.html#inline-formatting"><ins>9.4.2</ins></a><ins>)
396401
are ignored for this purpose.)</ins></span>
397402

398-
<LI><ins>both belong to vertically-adjacent box edges, i.e. form one</ins> of
399-
the <del>negative adjoining margins is deducted from zero. Vertical margins between</del><ins>following pairs:</ins>
403+
<LI><ins>both belong to vertically-adjacent box edges, i.e. form one of
404+
the following pairs:</ins>
400405

401406
<UL>
402-
<LI><ins>top margin of</ins> a <del>floated</del>box and <del>any other</del><ins>top margin of its first in-flow child</ins>
407+
<LI><ins>top margin of a box and top margin of its first in-flow child</ins>
403408

404409
<LI><ins>bottom margin of box and top margin of its next in-flow
405410
following sibling</ins>
406411

407412
<LI><ins>bottom margin of a last in-flow child and bottom margin of its
408413
parent if the parent has 'auto' computed height</ins>
409414

410-
<LI><ins>top and bottom margins of a box that does not establish a new
415+
<LI><ins>top and bottom margins</ins> of <ins>a box that does not establish a new
411416
block formatting context and that has zero computed</ins> <a href="visudet.html#propdef-min-height" class="noxref"><span
412417
class="propinst-min-height"><ins>'min-height'</ins></span></a><ins>, zero or 'auto'
413418
computed</ins> <a href="visudet.html#propdef-height" class="noxref"><span class="propinst-height"><ins>'height'</ins></span></a><ins>, and no
@@ -426,35 +431,39 @@ <H3>8.3.1 <a name="collapsing-margins">Collapsing margins</a></H3>
426431

427432
<UL>
428433
<LI><ins>Margins between a</ins> <a href="visuren.html#floats"><ins>floated</ins></a> <ins>box
429-
and any other</ins> box do not <del>collapse.</del><ins>collapse (not even between a float and its
434+
and any other box do not collapse (not even between a float and its
430435
in-flow children).</ins>
431436

432-
<LI>Margins of <del>absolutely</del><ins>elements that establish new block formatting contexts
433-
(such as floats</ins> and <del>relatively</del><ins>elements with</ins> <a href="visufx.html#propdef-overflow" class="noxref"><span
437+
<LI><ins>Margins of elements that establish new block formatting contexts
438+
(such as floats and elements with</ins> <a href="visufx.html#propdef-overflow" class="noxref"><span
434439
class="propinst-overflow"><ins>'overflow'</ins></span></a> <ins>other than 'visible') do
435440
not collapse with their in-flow children.</ins>
436441

437442
<LI><ins>Margins of</ins> <a
438-
href="visuren.html#absolutely-positioned"><ins>absolutely</ins> positioned</a>
439-
boxes do not <del>collapse. Please consult</del><ins>collapse (not even with their in-flow children).</ins>
443+
href="visuren.html#absolutely-positioned"><ins>absolutely positioned</ins></a>
444+
<ins>boxes do not collapse (not even with their in-flow children).</ins>
440445

441446
<LI><ins>Margins of inline-block boxes do not collapse (not even with
442447
their in-flow children).</ins>
443448

444-
<LI>The <del>examples</del><ins>bottom margin</ins> of <del>margin,</del><ins>an in-flow block-level element always
449+
<LI><ins>The bottom margin of an in-flow block-level element always
445450
collapses with the top margin of its next in-flow block-level
446451
sibling, unless that sibling has clearance.</ins>
447452

448453
<LI><ins>The top margin of an in-flow block element collapses with its
449454
first in-flow block-level child's top margin if the element has no
450-
top border, no top</ins> padding, and <ins>the child has no clearance.</ins>
451-
452-
<LI><ins>The bottom margin of an in-flow block box with a</ins> <a href="visudet.html#propdef-height" class="noxref"><span
453-
class="propinst-height"><ins>'height'</ins></span></a> <ins>of 'auto' and a</ins> <a href="visudet.html#propdef-min-height" class="noxref"><span
454-
class="propinst-min-height"><ins>'min-height'</ins></span></a> <ins>of zero collapses
455-
with its last in-flow block-level child's bottom margin if the box
456-
has no bottom padding and no bottom border and the child's bottom
457-
margin does not collapse with a top margin that has clearance.</ins>
455+
top border, no top padding, and the child has no clearance.</ins>
456+
457+
<LI><ins>The bottom margin of an in-flow block box with a 'height' of
458+
'auto' collapses with its last in-flow block-level child's bottom</ins>
459+
margin, <ins>if:</ins>
460+
<UL>
461+
<LI><ins>the box has no bottom</ins> padding, and
462+
<LI><ins>the box has no bottom border, and</ins>
463+
<LI><ins>the child's bottom margin neither collapses with a top margin
464+
that has clearance, nor (if the box's min-height is non-zero)
465+
with the box's top margin.</ins>
466+
</UL>
458467

459468
<LI><ins>A box's own margins collapse if the</ins> <a href="visudet.html#propdef-min-height" class="noxref"><span
460469
class="propinst-min-height"><ins>'min-height'</ins></span></a> <ins>property is zero,

0 commit comments

Comments
 (0)