Skip to content

anchor-name: add position_after_layout behavioral subfeature#29282

Merged
caugner merged 1 commit intomdn:mainfrom
ddbeck:anchor-position-after-layout
Mar 20, 2026
Merged

anchor-name: add position_after_layout behavioral subfeature#29282
caugner merged 1 commit intomdn:mainfrom
ddbeck:anchor-position-after-layout

Conversation

@ddbeck
Copy link
Copy Markdown
Contributor

@ddbeck ddbeck commented Mar 17, 2026

Summary

This captures the specification change, where anchor positioning happens after layout, such as zooms or transforms. Originally reported in #28499.

Test results and supporting details

This spec change occurred in w3c/csswg-drafts#8584 (comment). The spec text can be found in the paragraph beginning with:

The anchor box’s position and size is determined after layout.

Chromium appears to be the only engine implementing. See Chromium bug 1993692 (comment #7).

Firefox bug 1993692 tracks this in Gecko.

I found three related bugs against WebKit, but none are confirmed or accepted. Since I don't know which one will ultimately be worked on, I used them all for impl_url. See related issues below for a complete list.

Related issues

@github-actions github-actions bot added data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS size:m [PR only] 25-100 LoC changed labels Mar 17, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@ddbeck ddbeck changed the title Anchor positioning: add position_after_layout behavioral subfeature anchor-name: add position_after_layout behavioral subfeature Mar 17, 2026
@ddbeck
Copy link
Copy Markdown
Contributor Author

ddbeck commented Mar 17, 2026

Also, I'll add that I considered marking this as partial_implementation, but decided that it didn't qualify. There's been no activity on the bug apart from the report and confirmation. It doesn't look like this is (yet) having a big impact on developers. I imagine this might change as the three implementers converge, but we can "promote" this to partial later, if and when this happens (or move on if the bug is fixed).

@caugner caugner merged commit d94c9aa into mdn:main Mar 20, 2026
8 checks passed
@mdn-bot mdn-bot mentioned this pull request Mar 20, 2026
@ddbeck ddbeck deleted the anchor-position-after-layout branch March 23, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS size:m [PR only] 25-100 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

anchor-positioning - support for anchoring on transformed elements

2 participants