Skip to content

Commit f2e30ae

Browse files
committed
[css-anchor-position][editorial] For 'accceptable anchor element', rearrange the conditions order, and rename the variables to be easier to read.
1 parent f6446ad commit f2e30ae

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

css-anchor-position-1/Overview.bs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -381,36 +381,36 @@ in anchor positioning.
381381
</div>
382382

383383
<div algorithm="acceptable anchor element">
384-
An element |el| is a <dfn export>acceptable anchor element</dfn>
385-
for an [=absolutely positioned=] element |query el|
384+
An element |possible anchor| is an <dfn export>acceptable anchor element</dfn>
385+
for an [=absolutely positioned=] element |positioned el|
386386
if all of the following are true:
387387

388-
* Either |el| is a descendant of |query el|'s [=containing block=],
389-
or |query el|'s [=containing block=] is the [=initial containing block=].
388+
* |possible anchor| is either an [=element=]
389+
or a [=part-like pseudo-element=].
390390

391-
* If |el| has the same [=containing block=] as |query el|,
392-
then either |el| is not [=absolutely positioned=],
393-
or |el| precedes |query el| in the tree order.
391+
* |possible anchor| is in scope for |positioned el|,
392+
per the effects of 'anchor-scope' on |positioned el|
393+
or its ancestors.
394394

395-
* If |el| has a different [=containing block=] from |query el|,
396-
then the last [=containing block=] in |el|'s [=containing block chain=]
397-
before reaching |query el|'s [=containing block=]
398-
is either not [=absolutely positioned=]
399-
or precedes |query el| in the tree order.
395+
* Either |possible anchor| is a descendant of |positioned el|'s [=containing block=],
396+
or |positioned el|'s [=containing block=] is the [=initial containing block=].
400397

401-
* |el| is either an [=element=]
402-
or a [=part-like pseudo-element=].
398+
* If |possible anchor| has the same [=containing block=] as |positioned el|,
399+
then either |possible anchor| is not [=absolutely positioned=],
400+
or |possible anchor| precedes |positioned el| in the tree order.
403401

404-
* If |el| is in the [=skipped contents=] of another element,
405-
then |query el| is in the [=skipped contents=] of that same element.
402+
* If |possible anchor| has a different [=containing block=] from |positioned el|,
403+
then the last [=containing block=] in |possible anchor|'s [=containing block chain=]
404+
before reaching |positioned el|'s [=containing block=]
405+
is either not [=absolutely positioned=]
406+
or precedes |positioned el| in the tree order.
407+
408+
* If |possible anchor| is in the [=skipped contents=] of another element,
409+
then |positioned el| is in the [=skipped contents=] of that same element.
406410

407-
Note: In other words, |query el| can anchor to |el|
411+
Note: In other words, |positioned el| can anchor to |possible anchor|
408412
if they're both in the same skipped "leaf",
409413
but it can't anchor "across" leafs.
410-
411-
* |el| is in scope for |query el|,
412-
per the effects of 'anchor-scope' on |query el|
413-
or its ancestors.
414414
</div>
415415

416416
<!-- Big Text: default

0 commit comments

Comments
 (0)