Skip to content

The interestfor attribute #1181

@mfreed7

Description

@mfreed7

Specification title

The interesttarget attribute

Specification or proposal URL (if available)

whatwg/html#11006

Explainer URL (if available)

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

Proposal author(s)

@mfreed7

MDN URL

No response

Caniuse.com URL

No response

Bugzilla URL

No response

Mozillians who can provide input

@emilio, @smaug----

WebKit standards-position

WebKit/standards-positions#464

Other information

See also, whatwg/html#10309, which has reached Stage 1 of the WHATWG.

This is closely related to both the popover=hint feature, the commandfor attribute, and the anchor positioning API. This API (interesttarget) is the final piece needed in order to unlock the ability to declaratively build tooltips, hovercards, and menus that are triggered by mouse-hover or keyboard/touchscreen.

I am requesting standards positions early in the process, in the hopes of getting valuable technical input on the shape of this API. The current explainer has the latest plan, but that's evolving rapidly. While there is a very draft spec PR, it doesn't yet contain all of the details, so the explainer should be the source of truth for now. Your input is appreciated now, as critical decisions are being made.

If you'd like to try out a prototype implementation, Chrome Canary with "Experimental Web Platform Features" enabled can be used with this quick demo: https://jsbin.com/cosusih/edit?html,output. Note that touchscreen behaviors have not yet been implemented, and details are again changing rapidly.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Position is proposed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions