added normal & match-parent values and updated intro#44017
Open
added normal & match-parent values and updated intro#44017
Conversation
This was referenced May 5, 2026
Contributor
|
Preview URLs (1 page) (comment last updated: 2026-05-08 00:27:02) |
8 tasks
hamishwillee
reviewed
May 8, 2026
hamishwillee
reviewed
May 8, 2026
hamishwillee
reviewed
May 8, 2026
| - : The name of the anchor element to associate the positioned element with, as listed in the anchor element's {{cssxref("anchor-name")}} property. This is known as the **default anchor specifier**. | ||
|
|
||
| - `match-parent` | ||
| - : Uses the same default anchor element as the parent or originating element, if this is a [pseudo-element](/en-US/docs/Glossary/Pseudo-element) if any, and if that would be an acceptable anchor element. Otherwise it has no default anchor element. |
Collaborator
There was a problem hiding this comment.
I don't understand this. Does it mean:
Suggested change
| - : Uses the same default anchor element as the parent or originating element, if this is a [pseudo-element](/en-US/docs/Glossary/Pseudo-element) if any, and if that would be an acceptable anchor element. Otherwise it has no default anchor element. | |
| - : Uses the same default anchor element as the parent element, or the originating element if this is a [pseudo-element](/en-US/docs/Glossary/Pseudo-element), provided that would be an acceptable anchor element. Otherwise, it has no default anchor element. |
Note, I don't know what would make a pseudo element acceptable
hamishwillee
reviewed
May 8, 2026
| ### Values | ||
|
|
||
| - `normal` | ||
| - : If {{cssxref("position-area")}} is `none`, behaves as `none`. Otherwise, behaves as `auto`. |
Collaborator
There was a problem hiding this comment.
Suggested change
| - : If {{cssxref("position-area")}} is `none`, behaves as `none`. Otherwise, behaves as `auto`. | |
| - : If {{cssxref("position-area")}} is `none`, it behaves as `none`. Otherwise it behaves as `auto`. |
hamishwillee
reviewed
May 8, 2026
| --- | ||
|
|
||
| The **`position-anchor`** [CSS](/en-US/docs/Web/CSS) property specifies the anchor name of the **anchor element** (i.e., an element that has an **anchor name** set on it via the {{cssxref("anchor-name")}} property) a positioned element is associated with. | ||
| The **`position-anchor`** [CSS](/en-US/docs/Web/CSS) property specifies the default **anchor element** (i.e., an element that has an **anchor name** set on it via the {{cssxref("anchor-name")}} property), which is used by {{cssxref("position-area")}}, {{cssxref("position-try")}}, and (by default) all anchor functions ({{cssxref("anchor()")}} and {{cssxref("anchor-size()")}}) applied to this element. |
Collaborator
There was a problem hiding this comment.
The problem predates your chagens, but I don't understand this as written. I think it means this - can you confirm? Note that I used <anchor-name> rather than the property, because those methods specify it this way. When you link though, the value is an anchor-name property value.
Suggested change
| The **`position-anchor`** [CSS](/en-US/docs/Web/CSS) property specifies the default **anchor element** (i.e., an element that has an **anchor name** set on it via the {{cssxref("anchor-name")}} property), which is used by {{cssxref("position-area")}}, {{cssxref("position-try")}}, and (by default) all anchor functions ({{cssxref("anchor()")}} and {{cssxref("anchor-size()")}}) applied to this element. | |
| The **`position-anchor`** [CSS](/en-US/docs/Web/CSS) property specifies the default **anchor element** for a positioned element. | |
| This default is used by {{cssxref("position-area")}} and {{cssxref("position-try")}}, and by anchor functions ({{cssxref("anchor()")}} and {{cssxref("anchor-size()")}}) when no `<anchor-name>` argument is provided to those functions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
position-anchorpropertyposition-anchorpropertyposition-anchorpropertyMotivation
Related issues and pull requests