Skip to content

Commit c04dc2a

Browse files
committed
[css-anchor-position-1] Add position-anchor: match-parent #8913
1 parent 7ab7f09 commit c04dc2a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

css-anchor-position-1/Overview.bs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ Default Anchors: the 'position-anchor' property</h3>
503503

504504
<pre class=propdef>
505505
Name: position-anchor
506-
Value: normal | none | auto | <<anchor-name>>
506+
Value: normal | none | auto | <<anchor-name>> | match-parent
507507
Initial: normal
508508
Applies to: [=absolutely positioned boxes=]
509509
Inherited: no
@@ -536,6 +536,13 @@ and (by default) all [=anchor functions=] applied to this element.
536536
::
537537
The [=target anchor element=] selected by the specified <<anchor-name>>
538538
is the box's [=default anchor element=].
539+
540+
: <dfn>match-parent</dfn>
541+
::
542+
Uses the same [=default anchor element=] as the parent--
543+
or [=originating element=], if this is a [=pseudo-element=]--
544+
if any, and if that would be an [=acceptable anchor element=].
545+
Otherwise, the box has no [=default anchor element=].
539546
</dl>
540547

541548
The [=principal box=] of the [=default anchor element=]
@@ -2697,9 +2704,11 @@ Changes {#changes}
26972704
=======
26982705

26992706
Significant changes since the <a href="https://un5gmtkzgkj46tygt32g.julianrbryant.com/TR/2026/WD-css-anchor-position-1-20260130/">30 January 2026 Working Draft</a>:
2700-
* Mark 'position-area' as discretely animatable.
2707+
* Added ''position-area/match-parent'' value to 'position-area'.
2708+
(<a href="https://github.com/w3c/csswg-drafts/issues/8913">Issue 8913</a>)
2709+
* Marked 'position-area' as discretely animatable.
27012710
(<a href="https://github.com/w3c/csswg-drafts/issues/13577">Issue 13577</a>)
2702-
* Remove ''anchor-center'' from 'align-items' and 'justify-items' because those properties have no effect on absolutely-positioned boxes anyway.
2711+
* Removed ''anchor-center'' from 'align-items' and 'justify-items' because those properties have no effect on absolutely-positioned boxes anyway.
27032712
(<a href="https://github.com/w3c/csswg-drafts/issues/13514">Issue 13514</a>)
27042713

27052714
Significant changes since the <a href="https://un5gmtkzgkj46tygt32g.julianrbryant.com/TR/2025/WD-css-anchor-position-1-20251222/">22 December 2025 Working Draft</a>:

0 commit comments

Comments
 (0)