This chromestatus represents the following related set of changes, which were resolved in https://github.com/whatwg/html/pull/9144#issuecomment-2195095228 and landed in https://github.com/whatwg/html/pull/10728: 1. add an imperative way to set invoker relationships between popovers: popover.showPopover({source}) 2. invoker relationships create implicit anchor element references.
The addition of `showPopover({source})` poses no compat risk, since it's a new capability. Making popover invokers into implicit anchor elements poses an extremely-small compat risk, in the case that a site: 1) uses popovertarget to invoke a popover 2) uses an anchor positioning property like `position-area` or the `anchor()` function, but critically *does not* use `position-anchor` or `anchor-name` to actually connect those properties between elements. 3) *relies* on there being no actual anchor positioning connection between the popover and the invoker. While this is certainly possible, it is very unlikely, especially given how recently anchor positioning shipped, in only Chromium browsers.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
None
https://wpt.fyi/results/html/semantics/popovers/imperative-invokers.tentative.html https://wpt.fyi/results/css/css-anchor-position/popover-implicit-anchor.tentative.html
Shipping on desktop | 133 |
Shipping on Android | 133 |
Shipping on WebView | 133 |
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
None
Contact emails
mas...@chromium.org
Explainer
None
Specification
https://github.com/whatwg/html/pull/10728
Summary
This chromestatus represents the following related set of changes, which were resolved in https://github.com/whatwg/html/pull/9144#issuecomment-2195095228 and landed in https://github.com/whatwg/html/pull/10728: 1. add an imperative way to set invoker relationships between popovers: popover.showPopover({source}) 2. invoker relationships create implicit anchor element references.
Blink component
Blink>DOM
TAG review
None
TAG review status
Not applicable
Risks
Interoperability and Compatibility
The addition of `showPopover({source})` poses no compat risk, since it's a new capability. Making popover invokers into implicit anchor elements poses an extremely-small compat risk, in the case that a site: 1) uses popovertarget to invoke a popover 2) uses an anchor positioning property like `position-area` or the `anchor()` function, but critically *does not* use `position-anchor` or `anchor-name` to actually connect those properties between elements. 3) *relies* on there being no actual anchor positioning connection between the popover and the invoker. While this is certainly possible, it is very unlikely, especially given how recently anchor positioning shipped, in only Chromium browsers.
Gecko: No signal
WebKit: No signal
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAM%3DNeDi9ZVzuBm8n7wiKRBzA8b23ZBWS18QK3OoL8-m7XN0C0g%40mail.gmail.com.
Can we request signals from WebKit & Gecko (or do we already have them)?Gecko: No signal
WebKit: No signal
Thanks for providing the links (and additional context).
LGTM1
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/27a984e1-a65c-4939-943e-32ba679861c9%40chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAM0wra9OeYWi1cgoMiNd1Sb_cSZR3V2FQuAKvsFGKDti5ibxGA%40mail.gmail.com.