CSSOM Parser and Object Model

JSON →
library 0.5.0 ·javascript maintenance
verified May 27, 2026

CSSOM.js is a pure JavaScript CSS parser and a partial implementation of the W3C CSS Object Model (CSSOM). Currently at version 0.5.0, this library provides functionality to parse raw CSS strings into a structured object representation, allowing for basic programmatic inspection and manipulation of CSS rules. Its release cadence has been slow, with the last publish being 5 years ago. A key differentiator is its direct representation of CSS as a JavaScript object. However, it explicitly advises against its use for advanced CSS processing tasks such as minification, munging, or reformatting, particularly where the preservation of property order or fallback declarations (e.g., `background: gray; background: linear-gradient(...)`) is critical, as it applies CSS cascade rules and overwrites properties. It also has known limitations, including incomplete support for all CSS escape sequences and incompatibility with Internet Explorer versions prior to 9.

total hits 24
actors 6 distinct systems
last hit 2d ago ByteDance
ByteDance
13
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1

top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France