Skip to content

Commit 33e291b

Browse files
committed
[css2] Tanteks' edits: added note about 'clear' property and inline elements.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402073
1 parent e3f053d commit 33e291b

1 file changed

Lines changed: 19 additions & 12 deletions

File tree

css2/visuren.src

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: visuren.src,v 2.95 2003-01-27 22:30:55 bbos Exp $ -->
3+
<!-- $Id: visuren.src,v 2.96 2003-03-21 15:53:22 bbos Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<title>Visual formatting model</title>
7-
<!-- Changed by: Tantek Celik, 2003-01-20 -->
7+
<!-- Changed by: Tantek Celik, 2003-03-06 -->
88
<style type="text/css">
99
.current,.proposed { background:#feb }
1010
ins.proposed { background:#bfb }
@@ -123,9 +123,10 @@ and 'table'.
123123
</p>
124124
<p>Block-level elements generate a <span class="index-def"
125125
title="principal block box"><a name="principal-box"><dfn>principal
126-
block box</dfn></a></span> that only contains <span class="index-def"
126+
block box</dfn></a></span> that contains either only <span class="index-def"
127127
title="block box"><a name="block-box"><dfn>block
128-
boxes</dfn></a></span>. The principal block box establishes the <a
128+
box</dfn>es</a></span> or only <span class="index-def"
129+
title="inline box"><a name="inline-box"><dfn>inline box</dfn>es</a></span>. The principal block box establishes the <a
129130
href="#containing-block">containing block</a> for descendant boxes and
130131
generated content and is also the box involved in any positioning
131132
scheme. Principal block boxes participate in a <a
@@ -1183,18 +1184,24 @@ source document.
11831184
<dd>No constraint on the box's position with respect to floats.</dd>
11841185
</dl>
11851186

1186-
<p>When applied to inline elements, rather than increasing the top margin as
1187-
explained above, one or more empty line boxes are inserted to move
1187+
<p class="note">
1188+
Note: This property applied to all elements in CSS1. Implementations
1189+
may therefore have supported this property on all elements. In CSS2
1190+
and CSS 2.1 the 'clear' property only applies to block-level elements.
1191+
Therefore authors should only use this property on block-level
1192+
elements. If an implementation does support clear on inline elements,
1193+
rather than increasing the top margin as explained above,
1194+
the implementation should insert one or more empty line boxes to move
11881195
the top of the cleared inline's line box to below the respective floating box(es).
11891196
</p>
1190-
1197+
<del>
1198+
<p>
11911199
Example:
1192-
1193-
<PRE>
1200+
</p>
1201+
<pre>
11941202
span { clear: left }
1195-
</PRE>
1196-
1197-
1203+
</pre>
1204+
</del>
11981205
<p>When the property is set on floating elements, it results in a
11991206
modification of the <a href="#float-rules">rules</a> for
12001207
positioning the float. An extra constraint (#10) is added:

0 commit comments

Comments
 (0)