Skip to content

The interestfor attribute #464

Description

@mfreed7

WebKittens

@annevk, @nt1m

Title of the proposal

The interestfor attribute

URL to the spec

whatwg/html#11006

URL to the spec's repository

https://github.com/whatwg/html

Issue Tracker URL

No response

Explainer URL

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

TAG Design Review URL

No response

Mozilla standards-positions issue URL

mozilla/standards-positions#1181

WebKit Bugzilla URL

No response

Radar URL

No response

Description

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 (interestfor) 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

No one assigned

    Labels

    concerns: accessibilityThere might be accessibility issues with the proposal.concerns: device independenceProposal is hardware- or OS-specific, in a way that may risk the device independence of the Webconcerns: portabilityThis proposal may be impossible or difficult to implement on at least one important platformconcerns: usabilityThis proposal will create usability issues for usersfrom: GoogleProposed, edited, or co-edited by Google.topic: htmlSpec relates to HTML (Hypertext Markup Language)venue: Open UI CGvenue: WHATWG HTML Workstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions