coderef

InkLimited availability

The navigator.ink API uses the system compositor to draw to a <canvas> element ahead of pointer events, reducing the delay between moving a stylus or cursor and a pen stroke appearing on screen.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–93Not supported
94+Supportedsince Sep 21, 2021
Current: 155
Edge
12–92Not supported
93+Supportedsince Sep 2, 2021
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–93Not supported
94+Supportedsince Sep 21, 2021
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Firefox, Safari, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: DelegatedInkTrailPresenter.

Feature detection

JS · check before using
if ("Ink" in globalThis) {
  // Ink is available
} else {
  // load a polyfill or use a fallback
}

Sub-features

Support for each part of the feature (6). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
DelegatedInkTrailPresenter9493✕✕94✕✕
DelegatedInkTrailPresenter.presentationArea9493✕✕94✕✕
DelegatedInkTrailPresenter.updateInkTrailStartPoint9493✕✕94✕✕
Ink9493✕✕94✕✕
Ink.requestPresenter9493✕✕94✕✕
Navigator.ink9493✕✕94✕✕