|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | 2 | <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 $ --> |
4 | 4 | <HEAD> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
6 | 6 | <TITLE>Visual formatting model</TITLE> |
@@ -165,7 +165,38 @@ the DIV above) has another block box inside it (such as the P |
165 | 165 | above), then we force it to have <em>only</em> block boxes |
166 | 166 | inside it, by wrapping any inline boxes in an anonymous block box. |
167 | 167 |
|
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 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 182 | +<HEAD> |
| 183 | +<TITLE>Anonymous text interrupted by a block</TITLE> |
| 184 | +</HEAD> |
| 185 | +<BODY> |
| 186 | +<em>This is anonymous text before the P.</em> |
| 187 | +<P>This is the content of P.</> |
| 188 | +<em>This is anonymous text after the P.</em> |
| 189 | +</BODY> |
| 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 |
169 | 200 | enclosing non-anonymous box (in the example: the one for |
170 | 201 | DIV). Non-inherited properties have their initial value. For example, |
171 | 202 | the font of the anonymous box is inherited from the DIV, but the |
|
0 commit comments