Skip to content

Commit c08bcb9

Browse files
committed
[css2] Tantek's modification of Hyatt's proposal inserted with <ins> tags
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402158
1 parent 6422f8b commit c08bcb9

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

css2/visuren.src

Lines changed: 13 additions & 8 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: visuren.src,v 2.105 2003-08-27 16:15:48 bbos Exp $ -->
3+
<!-- $Id: visuren.src,v 2.106 2003-08-27 19:28:38 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Visual formatting model</title>
@@ -1206,27 +1206,32 @@ the <span class="propinst-clear">'clear'</span> property</h3>
12061206
<a href="#run-in">run-in boxes</a>,
12071207
this property applies to the final block box to which the run-in box belongs.
12081208
</p>
1209+
<ins class="proposed">
1210+
<p>
1211+
The <dfn>clearance</dfn> dimension is introduced as a dimension above the margin-top of an element that is used to push the element vertically down.
1212+
</p>
1213+
</ins>
12091214
<p>Values have the following meanings when applied to non-floating
12101215
block boxes:</p>
12111216

12121217
<dl>
12131218
<dt><strong>left</strong></dt>
12141219

1215-
<dd>The top margin of the generated box is increased enough that the
1220+
<dd>The <span class="delcurrent">top margin</span><span class="insproposed">clearance</span> of the generated box is <span class="delcurrent">increased enough that</span><span class="insproposed"> set to the amount necessary to place</span> the
12161221
top border edge is below the bottom outer edge of any left-floating
12171222
boxes that resulted from elements earlier in the source document.
12181223
</dd>
12191224

12201225
<dt><strong>right</strong></dt>
12211226

1222-
<dd>The top margin of the generated box is increased enough that the
1227+
<dd>The <span class="delcurrent">top margin</span><span class="insproposed">clearance</span> of the generated box is <span class="delcurrent">increased enough that</span><span class="insproposed"> set to the amount necessary to place</span> the
12231228
top border edge is below the bottom outer edge of any right-floating
12241229
boxes that resulted from elements earlier in the source document.
12251230
</dd>
12261231

12271232
<dt><strong>both</strong></dt>
12281233

1229-
<dd>The top margin of the generated box is increased enough that the
1234+
<dd>The <span class="delcurrent">top margin</span><span class="insproposed">clearance</span> of the generated box is <span class="delcurrent">increased enough that</span><span class="insproposed"> set to the amount necessary to place</span> the
12301235
top border edge is below the bottom outer edge of any right-floating
12311236
and left-floating boxes that resulted from elements earlier in the
12321237
source document.
@@ -1239,11 +1244,11 @@ source document.
12391244

12401245
<ins class="proposed">
12411246
<p>
1242-
Increasing the margin of an element on which 'clear' is set is done after margin collapsing. First, margins are collapsed and floats earlier in the document tree between collapsed margins that collapse with the top margin of the element on which 'clear' is set are positioned according to the <a
1243-
href="box.html#collapsed-through">rules in section 8.3.3</a>. Next, the element on which 'clear' is set has its margin increased until its top border edge has passed the relevant floats, without affecting the position of earlier elements, and simply pushing the following elements down with it without having their collapsed margins recalculated.
1247+
Computing the clearance of an element on which 'clear' is set is done by first determining the hypothetical position of the element's top border edge within its parent block. This position is determined after the top margin of the element has been collapsed with previous adjacent margins (including the top margin of the parent block).
1248+
</p><p>
1249+
If the element's top border edge has not passed the relevant floats, then its clearance is set to the amount necessary to place the border edge of the block even with the bottom outer edge of the lowest float that must be cleared.
12441250
</p>
12451251
</ins>
1246-
12471252
<p>When the property is set on floating elements, it results in a
12481253
modification of the <a href="#float-rules">rules</a> for
12491254
positioning the float. An extra constraint (#10) is added:
@@ -1264,7 +1269,7 @@ may therefore have supported this property on all elements. In CSS2
12641269
and CSS 2.1 the 'clear' property only applies to block-level elements.
12651270
Therefore authors should only use this property on block-level
12661271
elements. If an implementation does support clear on inline elements,
1267-
rather than increasing the top margin as explained above,
1272+
rather than <span class="delcurrent">increasing the top margin</span><span class="insproposed">setting a clearance</span> as explained above,
12681273
the implementation should force a break and effectively insert one or more empty line boxes (or shifting the new line box downward as described in <a href="#floats">section 9.5</a>) to move the top of the cleared inline's line box to below the respective floating box(es).
12691274
</em>
12701275
</p>

0 commit comments

Comments
 (0)