Socket
Socket
Sign inDemoInstall

known-css-properties

Package Overview
Dependencies
0
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

known-css-properties


Version published
Maintainers
1
Install size
32.4 kB
Created

Package description

What is known-css-properties?

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.

What are known-css-properties's main functionalities?

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

Other packages similar to known-css-properties

Readme

Source

logo

Known CSS properties

List of standard and browser specific CSS properties.

License Renovate enabled Npm downloads

Source

  1. Standard properties (only 'REC', 'CR', 'LC', 'WD', 'FPWD', 'ED' statuses): http://www.w3.org/Style/CSS/all-properties.en.json
  2. Browser supported properties from window.getComputedStyle / document.body.style

Windows

XP7810
Chrome18-4918-5022-5037-56
Firefox6-456-4516-4532-52
Internet Explorer8-1110-1111
Edge13-17

OSX

10.610.1110.1210.13
Chrome14-4914-5859-6465-69
Firefox6-426-5253-5859-62

Others:

  • Safari: 6, 6.2, 7, 8, 9, 9.1, 10.0, 11.0, 11.1, 12.0
  • Mobile Safari: 6, 7, 8, 8.3, 9.0, 9.3, 10.0, 10.2, 10.3, 11.0, 11.2, 11.3, 11.4, 12.0
  • Chrome Android: 30, 35, 37, 44, 46, 51, 55, 56, 57, 58, 59, 60, 61, 62, 64, 66, 67, 68, 69
  • Firefox mobile: 47, 52, 53, 54, 57, 58, 62
  • IE mobile: 11
  • Opera Win XP: 12.10, 12.14, 12.15, 12.16
  • Opera Win 8: 36-38
  • Opera OSX: 36-40, 45
  • Opera Mobile: 42.7, 43, 47.1
  • Samsung internet: 4.0, 6.4, 7.4
  • UC browser: 11.2, 12.9

JavaScript API

const properties = require('known-css-properties').all;

Thanks

We use SauceLabs testing solution for getting most of the data.

Keywords

FAQs

Last updated on 05 Oct 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc