The Popover API (https://chromestatus.com/feature/5463833265045504) specifies the behavior for two values of the `popover` attribute: `auto` and `manual`. This feature describes a third value, `popover=hint`. Hints, which are most often associated with "tooltip" type behaviors, have slightly different behaviors. Primarily, the difference is that `hint`s are subordinate to `auto`s when opening nested stacks of popovers. So it is possible to open an unrelated `hint` popover while an existing stack of `auto` popovers stays open. The canonical example is that a <select> picker is open (popover=auto) and a hover-triggered tooltip (popover=hint) is shown. That action does not close the <select> picker.
Since this is a new value for `popover`, there should not be any compat risks.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
https://wpt.fyi/results/html/semantics/popovers
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).
Contact emails
mas...@chromium.org
Explainer
https://open-ui.org/components/popover-hint.research.explainer
Specification
https://github.com/whatwg/html/pull/9778
Summary
The Popover API (https://chromestatus.com/feature/5463833265045504) specifies the behavior for two values of the `popover` attribute: `auto` and `manual`. This feature describes a third value, `popover=hint`. Hints, which are most often associated with "tooltip" type behaviors, have slightly different behaviors. Primarily, the difference is that `hint`s are subordinate to `auto`s when opening nested stacks of popovers. So it is possible to open an unrelated `hint` popover while an existing stack of `auto` popovers stays open. The canonical example is that a <select> picker is open (popover=auto) and a hover-triggered tooltip (popover=hint) is shown. That action does not close the <select> picker.
Blink component
Blink>HTML>Popover
TAG review
TAG review status
Pending
Risks
Interoperability and Compatibility
Since this is a new value for `popover`, there should not be any compat risks.
Gecko: Positive (https://github.com/mozilla/standards-positions/issues/965)
--
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%3DNeDgzF-L9OSyr6sdarJHD-2UFPZ0D3Bvus53v-bXKxwRXyA%40mail.gmail.com.
I see that WebKit is opposed to landing this PR. I don't fully understand the objection - there are other instances of different UX patterns between Desktop and Mobile that users seem to understand - e.g., pull to refresh vs ctrl/cmd-r - so thank you for asking for more specifics some 3 weeks ago.Specification
https://github.com/whatwg/html/pull/9778
Is it worth asking TAG for input here? Or have they already given it?TAG review
(non-blocking note here: I see there was a patch submitted 5 months ago, but there hasn't been any visible activity around it. I wonder why.)
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
LGTM2 - I agree that the use cases are compelling and see there
is significant demand for popover=hint.
LGTM2 - I agree that the use cases are compelling and see there is significant demand for popover=hint.
On 11/18/24 2:49 AM, Domenic Denicola wrote:
LGTM1.
The only open spec issue I found related to this feature is https://github.com/openui/open-ui/issues/781 which I don't believe is blocking.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
LGTM3
I see Apple's concerns about this being not great for mobile devices with current UI models, but the value to devices that have useful pointer devices seems great enough to motivate shipping it anyway.
/Daniel