You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li>For other elements, if the element's position is 'relative' or 'static',
39
-
the containing block is formed by <span class="delproposed">the content edge of</span> the nearest
39
+
the containing block is formed by the content edge of the nearest
40
40
<a href="visuren.html#block-level">block-level</a>, table cell or
41
41
inline-block ancestor box.
42
42
</li>
@@ -46,8 +46,7 @@ established by the <a href="visuren.html#viewport">viewport</a>.
46
46
<li>If the element has 'position: absolute', the containing block is
47
47
established by the nearest ancestor with a <span
48
48
class="propinst-position">'position'</span> of 'absolute', 'relative'
49
-
or 'fixed'<span class="delcurrent">, in the following way:</span><span class="insproposed">.</span>
50
-
<div class="delcurrent">
49
+
or 'fixed', in the following way:
51
50
<ol>
52
51
<li>In the case that the ancestor is <a
53
52
href="visuren.html#block-level">block-level</a>, the containing block
@@ -72,21 +71,7 @@ are the bottom and left content edges of the last box of the ancestor.
72
71
</ol>
73
72
</li>
74
73
</ol>
75
-
</div>
76
-
<div class="insproposed">
77
-
If that ancestor is inline-level, construct its effective containing block
78
-
content/padding boxes as following:
79
-
<ol>
80
-
<li>If the <span class="propinst-direction">'direction'</span> is 'ltr', for the top and left, use the the top and left content edges of the first box generated by
81
-
the ancestor, and for the bottom and right are the bottom and right
82
-
content edges of the last box of the ancestor.
83
-
</li>
84
-
<li>If the <span class="propinst-direction">'direction'</span> is 'rtl', for the top and right, use the top and
85
-
right edges of the first box generated by the
86
-
ancestor, and for the bottom and left, use the bottom and left content edges of the last box of the ancestor.
87
-
</li>
88
-
</ol>
89
-
</div>
74
+
90
75
<p>If there is no such ancestor, the containing block is the initial
91
76
containing block.
92
77
</p>
@@ -97,10 +82,10 @@ containing block.
97
82
<p>In paged media, an absolutely positioned element is positioned
98
83
relative to its containing block ignoring any page breaks (as if the
99
84
document were continuous). The element may subsequently be broken over
100
-
several pages. (Page break properties apply.)
85
+
several pages. Page break properties may apply, however if more than one block formatting context on a page attempts to break the page, the results (e.g. where the page is broken, if at all) are undefined.
101
86
</p>
102
87
<p class="note">Note that a
103
-
containing block that is split over several pages may have a different
88
+
block-level element that is split over several pages may have a different
104
89
width on each page and that there may be device-specific limits.
105
90
</p>
106
91
</ins>
@@ -213,9 +198,14 @@ user agent if the value of this property is different than 'auto'.
213
198
<dd>Specifies a percentage width. The percentage is calculated
If the containing block's width depends on its content's width, and
217
-
the current element is not absolutely positioned, then the resulting
218
-
layout is undefined in CSS 2.1.
201
+
If the containing block is intrinsically sized (i.e., it depends on
202
+
its content's width) and the current element is not absolutely
203
+
positioned, then a percentage <span class="delcurrent">is</span><span class="insproposed">may be</span> interpreted as 'auto'.
204
+
<span class="insproposed">
205
+
<span class="note">
206
+
Note: For absolutely positioned elements whose containing block is based on a block-level element, the percentage is calculated with respect to the width of the <em>padding box</em> of that element. This is a change from CSS1, where the percentage width was always calculated with respect to the <em>content box</em> of the parent element.
0 commit comments