#1284: Incubation: Web Haptics API

Visit on Github

Opened Sep 24, 2026

Explainer

https://github.com/WICG/web-haptics/blob/main/readme.md

The explainer

Where and by whom is the work is being done?

Requesting an early pre-spec design review.

  • GitHub repo: https://github.com/WICG/web-haptics/
  • Primary contacts:
    • Alex Kyereboah (@kyerebo), Microsoft, Engineer
    • Limin Zhu (@liminzhu), Microsoft, PM
  • Organization/project driving the design: Microsoft
  • This work is being funded by: Microsoft
  • Incubation and standards groups that have discussed the design:
  • Standards group(s) that you expect to discuss and/or adopt this work when it's ready: WICG for the imperative API, CSSWG for the declarative API.

Feedback so far

  • Multi-stakeholder feedback:

    • Chromium comments: We are proposing the feature.
    • Mozilla comments: No spec exists yet, no position requested.
    • WebKit comments: No spec exists yet, no position requested.
  • Major unresolved issues with or opposition to this design:

    • The declarative API (CSS) is in-between two designs currently, the @haptic rule or the event-trigger model.

You should also know that...

The declarative API could use direction on which model would be the most appropriate, but the imperative API is more straight-forward and is currently receiving direct developer testing.

<!-- Content below this is maintained by @w3c-tag-bot -->

Track conversations at https://tag-github-bot.w3.org/gh/w3ctag/design-reviews/1284

Discussions

Log in to see TAG-private discussions.

Comment by @christianliebel Oct 22, 2026 (See Github)

Hi @kyerebo, thanks for your proposal. The first thing we noticed is that your section on “Accessibility, Privacy, and Security Considerations” does not yet include accessibility considerations, although we believe this proposal might touch on accessibility. Could you please add those? I’m marking this issue as “Missing: security & privacy review” for lack of a better-fitting label for now.

Comment by @kyerebo Oct 26, 2026 (See Github)

Hi @christianliebel ! Thanks for the heads up. I've added an Accessibility section to the Explainer. Haptics is meant as supplementary feedback, and it's possible that a request doesn't produce an outcome due to it being unsupported. It shouldn't be relied on as an indicator for any interaction or final state, and uncomfortable vibration is managed by UA anti-abuse tools such as throttling or origin gating.

Discussed Nov 16, 2026 (See Github)

Ehsan: Proponents explained it can't be used as a fingerprinting array, but I'm concerned it can be used as a buffer with another API. This is a concern; they need to have some sort of direction for protections against that. E.g. coupled with acceleraometer.

Marcos: Agree with these concerns. If you can sense it's shaking enough, you can determine how it's being held, and that's fingerprintable.

Ehsan: It can be determined if you're running, walking, ... when you combine haptics and accelerometer.

Marcos: Gyroscope needs permission. Definitely stuff to dig into here.

Christian: I think the use case is fine. Undersand the concerns, which need discussion. The proposal seems to have stabilised following TPAC discussions with CSS. Should be good to review now. The obvious concern is user annoyance, too. This is also a feature that I personally have wished for. It's a cool addition for web apps.