css-object-model

0.3.0 • Public • Published

css-object-model

css-object-model is an implementation of the CSS Object Model (CSSOM) specification for use in jsdom. It is built upon the excellent CSSTree parser, which provides speed and standards-compliant parsing.

This package is a work in progress, with the currently supported interfaces listed below.

Interfaces

Fully supported

  • CSSFontFaceRule
  • CSSNamespaceRule
  • CSSRule
  • CSSRuleList
  • StyleSheetList

Partially supported

  • CSSStyleDeclaration
  • CSSStyleRule
  • CSSStyleSheet
  • StyleSheet

Not supported (yet)

  • CSS
  • CSSConditionRule
  • CSSGroupingRule
  • CSSImportRule
  • CSSKeyframeRule
  • CSSKeyframesRule
  • CSSMarginRule
  • CSSMediaRule
  • CSSPageRule
  • MediaList

Readme

Keywords

none

Package Sidebar

Install

npm i css-object-model

Weekly Downloads

1

Version

0.3.0

License

MIT

Last publish

Collaborators

  • zirro