Interest Invokers

Summary: This attribute adds "interest" behaviors to the element, such that when the user "shows interest" in the element, actions are triggered on the target element, such as showing a popover. The user agent will handle detecting when the user "shows interest" in the element, via methods such as hovering the element with a mouse, hitting special hotkeys on the keyboard, or long-pressing the element on touchscreens. When interest is shown or lost, an `InterestEvent` will be fired on the target, which have default actions in the case of popovers - showing and hiding the popover.

Motivation: The `popover=hint` feature (https://chromestatus.com/feature/5073251081912320, shipped in M133) provides "half" of the features needed to build declarative tooltips, hovercards, and menus. The missing piece is the invocation of those UX elements on hover, keyboard activation, or long-press. This feature fills that gap..

Explainer: https://open-ui.org/components/interest-invokers.explainer/

Intents: Experiment: Interest Invokers

Origin Trial: https://developer.chrome.com/origintrials/#/view_trial/813462682693795841

Chrome Platform Status: Interest Invokers (the `interestfor` attribute)

Spec: Add the interestfor attribute #11006

Tag Review: https://github.com/w3ctag/design-reviews/issues/1058

=== This is a demo of interest invokers. ===

Hover to show the hovercard This is the hovercard

Use interestfor to declaratively build a hovercard using popover (in this case using popover=hint):

Hello world