Skip to content
Marcos Cáceres edited this page Mar 17, 2022 · 15 revisions

caniuse

Adds a Can I Use support table in the document header.

var respecConfig = {
  caniuse: "payment-request",
};
var respecConfig = {
  caniuse: {
    feature: "payment-request",
    browsers: ["chrome", "safari"],
  },
};

Note: This feature is only available in "live" Editor's Drafts. Because this feature relies on JavaScript, it's not exported out when a document is saved as HTML. In exported document, the table is replaced by a link to caniuse.com.

Configuration Options:

feature
(required) Can I Use feature key
browsers
Array of browsers to show support for. Default is set automatically if missing and will change over time to best represent the browser market.
Supported Values:
  • and_chr - Chrome (Android)
  • and_ff - Firefox (Android)
  • and_uc - UC Browser (Android)
  • android - Android
  • bb - Blackberry
  • chrome - Chrome
  • edge - Edge
  • firefox - Firefox
  • ie - IE
  • ios_saf - Safari (iOS)
  • op_mini - Opera Mini
  • op_mob - Opera Mobile
  • opera - Opera
  • safari - Safari
  • samsung - Samsung Internet
versions (Deprecated)
Number of browser versions to show
Default: 4
maxAge
Cache duration (in ms).
Set to 0 to get fresh data each on each request.
Default: 86400000 // 24 hours

Guides

Configuration options

W3C Configuration options

Linter rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

WebIDL

HTML attributes

CSS Classes

Special properties

Clone this wiki locally