Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome 132 supports anchor-size() on margin and inset properties #25443

Merged

Conversation

chrisdavidmills
Copy link
Contributor

Summary

Chrome 132 supports the anchor-size() function on inset (e.g. inset, top, bottom, and logical equivalents) and margin (e.g. margin, margin-top, margin-left, and logical equivalents) properties.

This PR adds a data point for anchor-size() to each of those properties, and a data point to anchor-size() itself to mention inset and margin property support.

Test results and supporting details

See https://chromestatus.com/feature/5203950077476864 for the data source.

I've also tested anchor-size() in all the different inset and margin properties, with varying combinations of arguments (including <anchor-name>, <anchor-size>, and fallback <length-percentage> values) and as part of calc() expressions, in Chrome 132/133. They seemed to work as expected, and I didn't notice any bugs or support weirdness.

Related issues

@github-actions github-actions bot added data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS size:l [PR only] 101-1000 LoC changed labels Dec 17, 2024
Copy link
Contributor

@caugner caugner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Grouped diff:
image

@caugner caugner merged commit 610e3bc into mdn:main Dec 19, 2024
8 checks passed
@mdn-bot mdn-bot mentioned this pull request Dec 19, 2024
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:l [PR only] 101-1000 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants