Skip to content

Commit 828b26f

Browse files
committed
[css-position-3] Import definition of ‘static-position containing block’ from CSS2.
1 parent 29e253d commit 828b26f

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

css-position-3/Overview.bs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ spec:css2; type:dfn; text:stacking context
105105
urlPrefix: https://www.w3.org/TR/CSS2/visuren.html; spec: CSS2;
106106
url: #normal-flow; text: normal flow; type: dfn;
107107
url: #x1; text: viewport; type: dfn;
108-
urlPrefix: https://www.w3.org/TR/CSS2/visudet.html; spec: CSS2;
109-
url: #static-position; text: static position; type: dfn;
110-
url: #static-position; text: static-position containing block; type: dfn;
111108
</pre>
112109

113110
<pre class=link-defaults>
@@ -798,11 +795,11 @@ Absolute (and Fixed) Positioning</h3>
798795

799796

800797
<h4 id="staticpos-rect">
801-
Resolving Automatic Insets: the “Static Position Rectangle”</h4>
798+
Resolving Automatic Insets: the “Static-Position Rectangle”</h4>
802799

803800
When both [=inset properties=] in a given axis are ''left/auto'',
804-
they are resolved into a <dfn>static position</dfn>
805-
by aligning the box into its <dfn>static-position rectangle</dfn>,
801+
they are resolved into a <dfn export>static position</dfn>
802+
by aligning the box into its <dfn export>static-position rectangle</dfn>,
806803
an [=alignment container=] derived
807804
from the [=formatting context=] the box would have participated in
808805
if it were ''position: static''
@@ -818,11 +815,10 @@ Resolving Automatic Insets: the “Static Position Rectangle”</h4>
818815
are defined in [[CSS2]] Chapter 10.
819816
The [=static-position rectangle=] is a zero-thickness rectangle spanning between
820817
the inline-axis sides of the box’s [=static-position containing block=]
821-
(see <a href="https://www.w3.org/TR/CSS2/visudet.html#abs-non-replaced-width">CSS2&sect;10.3.7</a>);
822818
and positioned at its [=block-start=] [=static position=]
823819
(see <a href="https://www.w3.org/TR/CSS2/visudet.html#abs-non-replaced-height">CSS2&sect;10.6.4</a>).
824820

825-
Note: In block layout the static-position rectangle corresponds to the position of the “hypothetical box”
821+
Note: In block layout the [=static-position rectangle=] corresponds to the position of the “hypothetical box”
826822
described in <a href="https://www.w3.org/TR/CSS2/visudet.html#abs-non-replaced-width">CSS2.1&sect;10.3.7</a>.
827823
Since it has no alignment properties,
828824
CSS2.1 always uses a <a>block-start</a> <a>inline-start</a> alignment
@@ -856,11 +852,14 @@ Resolving Automatic Insets: the “Static Position Rectangle”</h4>
856852
</dl>
857853

858854
Finding the [=static position=] and the [=static position rectangle=]
859-
assumes that both 'float' and 'clear' have their initial values,
860-
and can require assuming a different hypothetical value
855+
assumes that both 'float' and 'clear' (as well as 'position')
856+
have their [=initial values=],
857+
and can consequently require assuming a different hypothetical value
861858
for 'display' as well.
859+
(The [=containing block=] the element would have had under these conditions
860+
is the <dfn export>static-position containing block</dfn>.)
862861
To the extent the [=box alignment properties=] have an effect,
863-
they use the [=static position containing block=]
862+
they use the [=static-position containing block=]
864863
as the effective [=containing block=],
865864
including using its [=writing mode=] for resolving alignment axes and directions.
866865
Additionally, the [=containing block=] of [=fixed positioned=] elements

0 commit comments

Comments
 (0)