cssstyle

CSSStyleDeclaration Object Model implementation

Usage no npm install needed!

<script type="module">
  import cssstyle from 'https://cdn.skypack.dev/cssstyle';
</script>

README

CSSStyleDeclaration

A Node JS implementation of the CSS Object Model CSSStyleDeclaration interface.

NpmVersion Build Status codecov


Background

This package is an extension of the CSSStyleDeclaration class in Nikita Vasilyev's CSSOM with added support for CSS 2 & 3 properties. The primary use case is for testing browser code in a Node environment.

It was originally created by Chad Walker, it is now maintaind by Jon Sakas and other open source contributors.

Bug reports and pull requests are welcome.