E58F [css-anchor-position] Define single-auto inset behavior. #12512 · w3c/csswg-drafts@e54ed0d · GitHub
[go: up one dir, main page]

Skip to content

Commit e54ed0d

Browse files
committed
[css-anchor-position] Define single-auto inset behavior. #12512
1 parent 16f14cb commit e54ed0d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

css-anchor-position-1/Overview.bs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ Anchor-Based Alignment {#alignment}
13181318
<h3 id=position-area-alignment>
13191319
Area-specific Default Alignment</h3>
13201320

1321-
When using 'position-area',
1321+
When 'position-area' is not ''position-area/none'',
13221322
the behavior of the ''align-self/normal'' [=self-alignment=] value
13231323
changes depending on the <<position-area>> value,
13241324
to align the box towards the anchor:
@@ -1332,6 +1332,14 @@ to align the box towards the anchor:
13321332
if it's specifying the “start” track of its axis,
13331333
the default alignment in that axis is ''align-self/end''; etc.
13341334

1335+
However, if only one [=inset property=] in the relevant axis is ''inset/auto'',
1336+
the default alignment is instead
1337+
towards the edge with the non-''inset/auto'' inset;
1338+
and this is an ''align-self/unsafe'' alignment.
1339+
1340+
Note: This single-''inset/auto'' behavior preserves the way
1341+
a single specified inset controls the position of an [=absolutely positioned=] box.
1342+
13351343
<div class=example>
13361344
For example, assuming an English-equivalent writing mode (horizontal-tb, ltr),
13371345
then the value ''span-x-start top'' resolves to

0 commit comments

Comments
 (0)
0