|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: visuren.src,v 2.164 2010-08-25 23:13:03 bbos Exp $ --> |
| 3 | +<!-- $Id: visuren.src,v 2.165 2010-09-29 15:52:02 bbos Exp $ --> |
4 | 4 | <head> |
5 | 5 | <title>Visual formatting model</title> |
6 | 6 | <meta name="editor" lang="tr" content="Tantek Çelik"> |
@@ -176,15 +176,13 @@ for the DIV above) has a block-level box inside it (such as the P |
176 | 176 | above), then we force it to have <em>only</em> block-level boxes |
177 | 177 | inside it. |
178 | 178 |
|
179 | | -<p> |
180 | | -When an inline box contains an in-flow block box, the inline box (and |
181 | | -its inline ancestors within the same line box) are broken around the |
182 | | -block-level box. The line boxes before the break and after the break are |
183 | | -enclosed in anonymous block boxes, and the block-level box becomes a sibling of |
184 | | -those anonymous boxes. |
185 | | -When such an inline box is affected by relative positioning, |
186 | | -the relative positioning also affects the block-level box. |
187 | | -</p> |
| 179 | +<p>When an inline box contains an in-flow block box, the inline box |
| 180 | +(and its inline ancestors within the same line box) are broken around |
| 181 | +the block-level box. The line boxes before the break and after the |
| 182 | +break are enclosed in anonymous block boxes, and the block-level box |
| 183 | +becomes a sibling of those anonymous boxes. When such an inline box is |
| 184 | +affected by relative positioning, the relative positioning also |
| 185 | +affects the block-level box contained in the inline box. |
188 | 186 |
|
189 | 187 | <div class="example"> |
190 | 188 | <p>This model would apply in the following example if the following |
@@ -240,6 +238,14 @@ CSS2-only user agents may implement this alternative model and still |
240 | 238 | claim conformance to this part of CSS 2.1. This does not apply to UAs |
241 | 239 | developed after this specification was released. |
242 | 240 | </p> |
| 241 | + |
| 242 | +<p>Anonymous block boxes are ignored when resolving percentage values |
| 243 | +that would refer to it: the closest non-anonymous ancestor box is used |
| 244 | +instead. For example, if the child of the anonymous block box inside |
| 245 | +the DIV above needs to know the height of its containing block to |
| 246 | +resolve a percentage height, then it will use the height of the |
| 247 | +containing block formed by the DIV, not of the anonymous block box. |
| 248 | + |
243 | 249 | <h3><a name="inline-boxes">Inline-level elements and inline boxes</a></h3> |
244 | 250 |
|
245 | 251 | <p><span class="index-def" title="inline-level element"> |
|
0 commit comments