Skip to content

Commit 96ebc23

Browse files
committed
[css-position-3] Abspos unsafe-aligns in IMCB, safe-aligns in CB. w3c#10316
1 parent 046ce52 commit 96ebc23

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

css-position-3/Overview.bs

+13-1
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,8 @@ Absolute Positioning Layout Model</h2>
882882
First, its [=inset-modified containing block=] is calculated,
883883
defining its [=available space=].
884884
(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=],
886887
its [=available space=] is always [=definite=].
887888
<li>
888889
Next, its width and height are resolved against this [=definite=] [=available space=],
@@ -898,6 +899,13 @@ Absolute Positioning Layout Model</h2>
898899
<li>
899900
Lastly, its [=margin box=] is aligned within the [=inset-modified containing block=]
900901
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.
901909
</ol>
902910

903911
<h3 id="abspos-auto-size">
@@ -1691,6 +1699,10 @@ Acknowledgments</h2>
16911699
The following significant changes were made since the
16921700
<a href="https://www.w3.org/TR/2023/WD-css-position-3-20230403/">3 April 2023 Working Draft</a>:
16931701
<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>)
16941706
<li>Clarified that the [=fixed positioning containing block=]
16951707
corresponds to the [=layout viewport=] (specifically) in [=continuous media=].
16961708
(<a href="https://github.com/w3c/csswg-drafts/issues/6453">Issue 6453</a>)

0 commit comments

Comments
 (0)