Skip to content

Commit 125e913

Browse files
committed
[css2] Added example of inline BODY and block P to anonymous block box section
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401529
1 parent 0e15ec2 commit 125e913

1 file changed

Lines changed: 33 additions & 2 deletions

File tree

css2/visuren.src

Lines changed: 33 additions & 2 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.51 1998-04-22 23:04:52 ijacobs Exp $ -->
3+
<!-- $Id: visuren.src,v 2.52 1998-04-23 23:45:59 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Visual formatting model</TITLE>
@@ -165,7 +165,38 @@ the DIV above) has another block box inside it (such as the P
165165
above), then we force it to have <em>only</em> block boxes
166166
inside it, by wrapping any inline boxes in an anonymous block box.
167167

168-
<p>The properties of these anonymous boxes are inherited from the
168+
<div class="example">
169+
<P>This model would apply in the following example if the
170+
the following rules:</p>
171+
172+
<PRE>
173+
/* Note: HTML UAs may not respect these rules */
174+
BODY { display: inline }
175+
P { display: block }
176+
</PRE>
177+
178+
<P>were used with this HTML document:</p>
179+
180+
<PRE class="html-example">
181+
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
182+
&lt;HEAD&gt;
183+
&lt;TITLE&gt;Anonymous text interrupted by a block&lt;/TITLE&gt;
184+
&lt;/HEAD&gt;
185+
&lt;BODY&gt;
186+
<em>This is anonymous text before the P.</em>
187+
&lt;P&gt;This is the content of P.&lt;/&gt;
188+
<em>This is anonymous text after the P.</em>
189+
&lt;/BODY&gt;
190+
</PRE>
191+
192+
<P>The BODY element contains a chunk (C1) of anonymous text followed
193+
by a block-level element followed by another chunk (C2) of anonymous
194+
text. The resulting boxes would be an anonymous block box for BODY,
195+
containing an anonymous block box around C1, the P block box, and
196+
another anonymous block box around C2.
197+
</div>
198+
199+
<p>The properties of anonymous boxes are inherited from the
169200
enclosing non-anonymous box (in the example: the one for
170201
DIV). Non-inherited properties have their initial value. For example,
171202
the font of the anonymous box is inherited from the DIV, but the

0 commit comments

Comments
 (0)