-
-
Notifications
You must be signed in to change notification settings - Fork 422
caniuse
Marcos Caceres edited this page Mar 28, 2026
·
18 revisions
Type: string | CaniuseOptions
Default: undefined
Adds a browser support table to the document header, sourced from caniuse.com.
var respecConfig = {
caniuse: "payment-request",
};var respecConfig = {
caniuse: {
feature: "payment-request",
browsers: ["chrome", "firefox", "safari", "edge"],
},
};| Option | Type | Default | Description |
|---|---|---|---|
feature |
string |
required | caniuse.com feature key (the slug from the URL) |
browsers |
string[] |
all major | Browser IDs to include in the table |
removeOnSave |
boolean |
true |
Strip the widget when saving as HTML; replace with a link to caniuse.com |
apiURL |
string |
caniuse data on respec.org | Override the caniuse data endpoint — advanced use, e.g. self-hosted data |
| ID | Browser |
|---|---|
chrome |
Chrome |
edge |
Edge |
firefox |
Firefox |
safari |
Safari |
ios_saf |
Safari on iOS |
and_chr |
Chrome on Android |
and_ff |
Firefox on Android |
and_uc |
UC Browser on Android |
samsung |
Samsung Internet |
op_mob |
Opera Mobile |
opera |
Opera |
- The caniuse widget requires JavaScript — in saved/exported HTML it is replaced by a plain link to caniuse.com
- The feature key is the slug from the caniuse.com URL:
https://caniuse.com/FEATURE-KEY -
wf-*prefixed features (Baseline/web-features) are not yet supported — they come from a different data source - To find the right feature key, browse caniuse.com and copy the URL slug
💖 Support ReSpec by becoming a sponsor via Open Collective. 💖
✨ View rendered version of this documentation at https://respec.org/docs/ ✨
- Getting Started
- How Do I…
- Spec Editor's Guide
- Writing Algorithms
- WebIDL Guide
- Configuring ReSpec
- Developers Guide
- Shorthands
- addSectionLinks
- authors
- caniuse
- edDraftURI
- editors
- format (markdown)
- formerEditors
- github
- highlightVars
- implementationStatus
- isPreview
- license
- lint
- localBiblio
- logos
- maxTocLevel
- mdn
- modificationDate
- monetization
- noTOC
- otherLinks
- pluralize
- postProcess
- preProcess
- previousDiffURI
- previousMaturity
- previousPublishDate
- prevRecShortname
- prevRecURI
-
processVersion(Removed) - publishDate
- shortName
- specStatus
- subjectPrefix
- subtitle
- testSuiteURI
- xref
- additionalCopyrightHolders
-
addPatentNote(Removed) - alternateFormats
- canonicalURI
- charterDisclosureURI
- copyrightStart
- crEnd
- dark mode
- doJsonLd
- errata
- group
- implementationReportURI
- level
- noRecTrack
- prevED
- prEnd
- submissionCommentNumber
-
wg(Deprecated — usegroup) -
wgId(Deprecated — usegroup) -
wgPatentURI(Deprecated — usegroup) -
wgPublicList(Deprecated — usegroup) -
wgURI(Deprecated — usegroup)
a11ycheck-charsetcheck-internal-slotscheck-punctuationinformative-dfnlocal-refs-existno-captionless-tablesno-headingless-sectionsno-http-propsno-link-warningsno-unused-dfnsno-unused-varsprivsec-sectionwpt-tests-exist
Handled by ReSpec for you.
- conformance
- idl-index
- index
- issue-summary
- references
- tof (Table of Figures)
- data-abbr
- data-cite
- data-dfn-for
- data-dfn-type
- data-export
- data-format
- data-include
- data-include-format
- data-include-replace
- data-link-for
- data-link-type
- data-local-lt
- data-lt
- data-lt-no-plural
- data-lt-noDefault
- data-max-toc
- data-number
- data-oninclude
- data-sort
- data-tests
-
data-transform(Deprecated) - data-type
- dir
- lang