
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
known-css-properties
Advanced tools
The known-css-properties npm package provides a comprehensive list of all known CSS properties. It is useful for validating CSS properties, building CSS parsers, or creating tools that need to work with CSS properties.
List all known CSS properties
This feature allows you to retrieve a list of all known CSS properties. The code sample demonstrates how to import the package and log the list of properties to the console.
const knownCssProperties = require('known-css-properties');
console.log(knownCssProperties.all);
Check if a property is known
This feature allows you to check if a specific CSS property is known. The code sample shows how to check if 'color' is a known CSS property.
const knownCssProperties = require('known-css-properties');
const isKnown = knownCssProperties.all.includes('color');
console.log(isKnown); // true
The css-properties package provides a list of all CSS properties, similar to known-css-properties. It is useful for validating and working with CSS properties. However, it may not be as comprehensive or up-to-date as known-css-properties.
The mdn-data package provides data from the MDN (Mozilla Developer Network) about various web technologies, including CSS properties. It offers a broader range of data beyond just CSS properties, making it more versatile but potentially more complex to use for just CSS properties.
List of standard and browser specific CSS properties.
window.getComputedStyle
/ document.body.style
XP | 7 | 8 | 10 | |
---|---|---|---|---|
Chrome | 18-49 | 18-50 | 22-50 | 37-56 |
Firefox | 6-45 | 6-45 | 16-45 | 32-52 |
Internet Explorer | 8-11 | 10-11 | 11 | |
Edge | 13-17 |
10.6 | 10.11 | 10.12 | 10.13 | |
---|---|---|---|---|
Chrome | 14-49 | 14-58 | 59-64 | 65-69 |
Firefox | 6-42 | 6-52 | 53-58 | 59-62 |
const properties = require('known-css-properties').all;
We use SauceLabs testing solution for getting most of the data.
FAQs
List of known CSS properties
The npm package known-css-properties receives a total of 6,906,819 weekly downloads. As such, known-css-properties popularity was classified as popular.
We found that known-css-properties demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.