mdn / mdn/content

Anchor positioning: stale content ("CSS working group is looking at ways to avoid requiring this workaround")

Open
#45,515 0 comments 0 reactions 1 assignee Claimed by @chrisdavidmills View on GitHub
Content:CSS Content:WebAPI
Dominant language
Markdown
Stars
11k
Forks
23.2k
Avg merge
2d 9h
Merged PRs (30d)
331

Description

### MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/anchor

### What specific section or headline is this issue about?

The paragraph advising a `margin` / `inset` reset. The same paragraph appears on three pages (see below).

### What information was incorrect, unhelpful, or incomplete?

- https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/anchor
- https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/position-area
- https://developer.mozilla.org/en-US/docs/Web/API/Popover_API/Using

On the above three pages there is a paragraph advising a `margin` / `inset` reset. Along with the following sentence:

> The CSS working group is [looking at ways to avoid requiring this workaround](https://github.com/w3c/csswg-drafts/issues/10258).

That issue was closed as completed on 19 December 2025, so the sentence presents settled work as ongoing. The advice around it is now over-broad rather than wrong: the reset is no longer needed when positioning with `position-area` or `anchor-center`, because the spec zeroes those itself. It is still needed for a bare `anchor()` with no `anchor-center`.

### What did you expect to see?

On each of the three pages: the warning scoped to `anchor()`, a note that `position-area` and `anchor-center` zero auto margins and auto insets themselves.

### Do you have any supporting links, references, or citations?

[§3.1 `position-area`](https://www.w3.org/TR/css-anchor-position-1/#position-area), for values other than `none`:

> The used value of any auto inset properties and auto margin properties resolves to 0.

[§4.2 `anchor-center`](https://www.w3.org/TR/css-anchor-position-1/#anchor-center) states the same effect, conditional on the box being absolutely positioned and having a default anchor box.

### Do you have anything more you want to share?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.