Skip to content

Commit

Permalink
[css-anchor-position] Layout containment also scopes anchor names. #9349
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Mar 8, 2024
1 parent e5cd5fa commit c94e5ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion css-anchor-position-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ Not all elements are capable of being [=anchor elements=]
for a given positioned element,
so a name can be reused in multiple places
if the usages are scoped appropriately.
[=Anchor names=] are style-contained, [=scoped to a sub-tree=].
If the element has either [=style containment=] or [=layout containment=],
the 'anchor-name' property is [=scoped property|scoped=] [=scoped to a subtree|to a subtree=].
If there are still multiple valid [=anchor elements=]
with the given [=anchor name=],
the last one is chosen.
Expand Down

0 comments on commit c94e5ae

Please sign in to comment.