|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: visudet.src,v 2.161 2011-03-23 21:13:32 bbos Exp $ --> |
| 3 | +<!-- $Id: visudet.src,v 2.162 2011-03-24 16:21:45 bbos Exp $ --> |
4 | 4 | <head> |
5 | 5 | <title>Visual formatting model details</title> |
6 | 6 | <style type="text/css"> |
@@ -44,17 +44,28 @@ established by the <a href="visuren.html#viewport">viewport</a> |
44 | 44 | in the case of continuous media or the page area in the case of paged media. |
45 | 45 | </li> |
46 | 46 | <li>If the element has 'position: absolute', the containing block is |
47 | | -the smallest rectangle that encloses the <a |
48 | | -href="box.html#padding-edge">padding edges</a> of all boxes generated |
49 | | -by the nearest |
50 | | -ancestor with a <span class="propinst-position">'position'</span> of |
51 | | -'absolute', 'relative' or 'fixed'. If there is no such ancestor, the |
52 | | -containing block is the initial containing block. If the ancestor is |
53 | | -block-level, only its principal box is taken into account. In |
54 | | -CSS 2.1, if the ancestor is an <a |
55 | | -href="visuren#inline-level">inline-level element</a> that splits |
| 47 | +established by the nearest ancestor with a <span |
| 48 | +class="propinst-position">'position'</span> of 'absolute', 'relative' |
| 49 | +or 'fixed', in the following way: |
| 50 | +<ol> |
| 51 | +<li>In the case that the ancestor is an <a |
| 52 | +href="visuren#inline-level">inline-level element,</a> the containing |
| 53 | +block is the bounding box around the first and the last inline boxes |
| 54 | +generated for that element. In CSS 2.1, if the inline-level |
| 55 | +element is split |
56 | 56 | across multiple lines, the containing block is undefined. |
57 | 57 | </li> |
| 58 | +<li>Otherwise, the containing block |
| 59 | +is formed by the <a href="box.html#padding-edge">padding edge</a> of |
| 60 | +<!-- we probably mean: the principal box of --> |
| 61 | +the ancestor. |
| 62 | +</li> |
| 63 | +</ol> |
| 64 | + |
| 65 | +<p>If there is no such ancestor, the containing block is the initial |
| 66 | +containing block. |
| 67 | +</p> |
| 68 | +</li> |
58 | 69 | </ol> |
59 | 70 |
|
60 | 71 | <p>In paged media, an absolutely positioned element is positioned |
|
0 commit comments