modern-css-properties

1.0.0 • Public • Published

Modern CSS Properties

The CSS properties supported by all three major web browser engines: Blink (Chrome/Edge), Gecko (Firefox), and WebKit (Safari).

const cssProperties = require('modern-css-properties');
console.log(cssProperties); // ["-webkit-appearance","-webkit-backface-visibility", ... "z-index"]

The list is built by using Playwright. Each browser is launched, and the css properties it supports are extracted. The intersection of these sets is written as the final list.

Why doesn't this list match the spec?

This list of properties is generated from the browser engines themselves. It may contain non-standard properties that happen to be implemented in all browsers. It may be missing standard properties that some browsers don't currently support.

Why are there properties that start with -webkit-?

Firefox supports some -webkit-* properties in order to improve thier compatibility with the web. You can technically use these properties in any browser, although you probably shouldn't.

I don't care about your package, I just want the list!

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i modern-css-properties

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    32.3 kB

    Total Files

    3

    Last publish

    Collaborators

    • joeleinbinder