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

Chromium 133 support for source property and implicit anchor references #25909

Merged

Conversation

chrisdavidmills
Copy link
Contributor

Summary

Chrome 133 adds support for:

  • The source option of the HTMLElement.showPopover() and HTMLElement.togglePopover() methods, which allow you to programmatically set the invoker (e.g. a button) of the popover the methods are being called on.
  • New behavior whereby when you create an association between a popover and an invoker (using the above methods, or popovertarget/popoverTargetElement), an implicit anchor reference is created between the two, so they can be positioned via CSS anchor positioning.

This PR adds data points for the above.

Test results and supporting details

I ran the example available in the above dom-examples PR in Chrome 133 release, and it works, which at least shows it is working by default in the lastest release, and is not behind a developer flag as the ChromeStatus seems to suggest.

Related issues

@github-actions github-actions bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML size:l [PR only] 101-1000 LoC changed labels Feb 13, 2025
Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Heads up for @ddbeck that these new popover keys will affect the popover web-feature.

@Elchi3 Elchi3 merged commit 90c0719 into mdn:main Feb 14, 2025
6 checks passed
@mdn-bot mdn-bot mentioned this pull request Feb 14, 2025
@chrisdavidmills chrisdavidmills deleted the popover-implicit-anchor-source-property branch February 14, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML size:l [PR only] 101-1000 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants