Skip to content
This repository contains compatibility data for Web technologies as displayed on MDN
JavaScript
Branch: master
Clone or download

Latest commit

Latest commit 041eb42 Jun 15, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Create workflow for testing with GitHub Actions (#6220) Jun 1, 2020
.vscode Remove Edge Mobile (from browsers, schema, etc.) (#4280) Jul 4, 2019
api Opera supports Location.hostname (#6286) Jun 15, 2020
browsers Firefox 77 release (#6230) Jun 2, 2020
css Chrome removes @Viewport (#6165) Jun 15, 2020
docs docs: Link to finding-browser-versions MDN article (#6208) May 26, 2020
html Update Safari compat data for <data>, HTMLDataElement (#6251) Jun 8, 2020
http Chrome 83 supports CSP: trusted-types (#6263) Jun 9, 2020
javascript Atomics ships in Fx78, Wasm.Memory accepts 'shared' (#6297) Jun 15, 2020
mathml/elements MathML mfenced is gone (#5458) Jan 10, 2020
schemas Update notes for additional NodeJS clarity (#6159) May 15, 2020
scripts Add link to PRs to draft release notes body (#6191) May 21, 2020
svg Add transform-origin to presentation SVG element (#6182) May 21, 2020
test Permissions API permissions descriptions linter (#6156) May 20, 2020
webdriver/commands Mirror Chrome -> Edge for webdriver/ (#5563) Feb 18, 2020
webextensions 1560218-Add-the-ability-to-duplicate-tab-to-a-specified-index (#6164) May 18, 2020
xpath/axes Remove Edge Mobile in xpath/* (#4278) Jun 13, 2019
xslt Mirror Chrome Android -> Samsung Internet for xslt/elements/stylesheet ( Oct 27, 2019
.editorconfig Add .editorconfig file and fix files (#188) May 16, 2017
.gitattributes Avoid line ending inconsistencies (#3231) Jan 7, 2019
.gitignore gitignore: ignore log files (#2216) Jul 13, 2018
.npmignore fix(npmignore): Remove the `.github` directory from the npm package (#… Sep 5, 2019
.prettierignore Migration 004: Add Prettier w/ configuration (#5031) Dec 2, 2019
.prettierrc Migration 004: Add Prettier w/ configuration (#5031) Dec 2, 2019
.travis.yml Revert nodejs version bump (#5863) Mar 23, 2020
CODE_OF_CONDUCT.md Reorganize project docs into /docs/ folder (#4161) May 16, 2019
GOVERNANCE.md Add Michael Smith as a BCD Peer (#5929) Apr 2, 2020
LICENSE Add CC0 license (#175) May 6, 2017
README.md Add chat link (#5556) Feb 20, 2020
index.d.ts feat(infra): Split the TypeScript type declaration (#3004) Mar 7, 2019
index.js Apply Prettier to subfolders + index.js (#5301) Dec 9, 2019
package-lock.json Patch release containing data or non-breaking updates only Jun 11, 2020
package.json Patch release containing data or non-breaking updates only Jun 11, 2020
types.d.ts Apply Prettier (#5250) Dec 3, 2019

README.md

mdn-browser-compat-data

https://github.com/mdn/browser-compat-data

This repository contains compatibility data for Web technologies. Browser compatibility data describes which platforms (where "platforms" are usually, but not always, web browsers) support particular Web APIs.

This data can be used in documentation, to build compatibility tables listing browser support for APIs. For example: Browser support for WebExtension APIs.

npm Build Status Twitter Follow

Read how this project is governed.

Chat on chat.mozilla.org#mdn.

Installation

You can install mdn-browser-compat-data as a node package.

npm install mdn-browser-compat-data

Usage

const bcd = require('mdn-browser-compat-data');
bcd.css.properties.background;
// returns a compat data object (see schema)

Repository contents

There's a top-level directory for each broad area covered: for example, "http", "javascript", "webextensions". Inside each of these directories is one or more JSON file containing the compatibility data.

  • api/ contains data for each Web API interface.

  • css/ contains data for CSS properties, selectors, and at-rules.

  • html/ contains data for HTML elements, attributes, and global attributes.

  • http/ contains data for HTTP headers, statuses, and methods.

  • javascript/ contains data for JavaScript built-in Objects, statement, operators, and other ECMAScript language features.

  • mathml/ contains data for MathML elements, attributes, and global attributes.

  • svg/ contains data for SVG elements, attributes, and global attributes.

  • webdriver/ contains data for WebDriver commands.

  • webextensions/ contains data for WebExtensions JavaScript APIs and manifest keys.

  • xpath/ contains data for XPath axes, and functions.

  • xslt/ contains data for XSLT elements, attributes, and global attributes.

Format of the browser compat json files

The definitive description of the format used to represent compatibility data is the schema file. You can also have a look at the schema documentation.

Issues?

If you find a problem, please file a bug.

Contributing

We're very happy to accept contributions to this data. See Contributing to browser-compat-data for more information.

Projects using the data

Here are some projects using the data, as an npm module or directly:

  • Add-ons Linter - the Add-ons Linter is used on addons.mozilla.org and the web-ext tool. It uses browser-compat-data to check that the Firefox version that the add-on lists support for does in fact support the APIs used by the add-on.
  • Browser Compatibility Data Explorer - View, search, and visualize data from the compatibility dataset.
  • caniuse - In addition to the existing caniuse database, caniuse includes features from the MDN BCD project, formatted and interactive like any other caniuse support table.
  • Compat Report - Firefox Add-on that shows compatibility data for the current site in the developer tools.
  • compat-tester - Scan local documents for compatibility issues.
  • Visual Studio Code - Shows the compatibility information in the code completion popup.
  • webhint.io - Hints to check if your CSS HTML and JavaScript have deprecated or not broadly supported features.
  • WebStorm - JavaScript IDE allowing you to check whether all CSS properties you use are supported in the target browser version.
You can’t perform that action at this time.