@@ -882,7 +882,8 @@ Absolute Positioning Layout Model</h2>
882
882
First, its [=inset-modified containing block=] is calculated,
883
883
defining its [=available space=] .
884
884
(See [[#abspos-insets]] .)
885
- Because an [=absolutely positioned box=] can have no effect on the size of its [=containing block=] ,
885
+
886
+ Because an [=absolutely positioned box=] does not affect the size of its [=containing block=] ,
886
887
its [=available space=] is always [=definite=] .
887
888
<li>
888
889
Next, its width and height are resolved against this [=definite=] [=available space=] ,
@@ -898,6 +899,13 @@ Absolute Positioning Layout Model</h2>
898
899
<li>
899
900
Lastly, its [=margin box=] is aligned within the [=inset-modified containing block=]
900
901
as defined by its [=self-alignment properties=] .
902
+
903
+ For this purpose, if neither ''<overflow-position>/safe'' nor ''<overflow-position>/unsafe'' is specified,
904
+ the box aligns at an "in-between" level of safety:
905
+ it is ''unsafe'' -aligned within its [=inset-modified containing block=] ,
906
+ but shifted, if necessary, to not overflow
907
+ the union of its [=absolute-position containing block=] and its [=inset-modified containing block=] --
908
+ unless it is larger than that rectangle, in which case it is start-aligned to it.
901
909
</ol>
902
910
903
911
<h3 id="abspos-auto-size">
@@ -1691,6 +1699,10 @@ Acknowledgments</h2>
1691
1699
The following significant changes were made since the
1692
1700
<a href="https://www.w3.org/TR/2023/WD-css-position-3-20230403/">3 April 2023 Working Draft</a> :
1693
1701
<ul>
1702
+ <li> Adjusted alignment of [=absolutely positioned boxes=]
1703
+ to, by default, constrain the box to its [=containing block=] .
1704
+ See [[#abspos-layout]] .
1705
+ (<a href="https://github.com/w3c/csswg-drafts/issues/10316">Issue 10316</a> )
1694
1706
<li> Clarified that the [=fixed positioning containing block=]
1695
1707
corresponds to the [=layout viewport=] (specifically) in [=continuous media=] .
1696
1708
(<a href="https://github.com/w3c/csswg-drafts/issues/6453">Issue 6453</a> )
0 commit comments