Skip to content

Commit 5c559dc

Browse files
committed
[css-align-3] First crack at fixing abspos center alignment, w3c#4659.
1 parent af10814 commit 5c559dc

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

css-align-3/Overview.bs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1726,9 +1726,15 @@ Effects on Sizing of Absolutely Positioned Boxes with Static-Position Insets</h3
17261726
wherever the 'direction' property of the <a>static-position containing block</a> is referenced,
17271727
instead reference the value of the 'align-self' or 'justify-self' property
17281728
(whichever is defined to apply to the relevant axis),
1729-
treating ''justify-content/normal'' as ''start''
1729+
treating ''justify-self/normal'' as ''start''
17301730
and any <a>distributed alignment</a> value as its <a>fallback alignment</a>.
17311731

1732+
In the case of ''justify-self/center'' alignment,
1733+
the [=available space=] for the box is
1734+
double the distance between the center of the [=static position rectangle=]
1735+
and the closest edge of the [=containing block=]
1736+
in the relevant axis.
1737+
17321738
<figure>
17331739
<img src="images/place-content-abspos.svg" width=480 height=330
17341740
alt="Start alignment sizes into the space between

css-align-3/images/place-content-abspos.svg

Lines changed: 8 additions & 8 deletions
Loading

0 commit comments

Comments
 (0)