This is a Node.js implementation of the CSS Object Model, specifically the CSSStyleDeclaration interface. It is useful for testing browser code in a Node environment, providing an extension with support for modern specifications as used by the jsdom community.
Project status
- The source appears actively maintained (recent tagged updates in Feb to early Mar 2026, and an upstream push on 2026-03-21).
- The apparent update cadence is fairly steady, with multiple updates within about a 1 to 2 week window (v6.0.2 on 2026-02-22, v6.1.0 on 2026-02-23, v6.2.0 on 2026-03-02).
AI summary generated Today
Recent updates
v6.2.0
3 months agoRelease v6.2.0 primarily updates dependency versions, most notably @webref/css. Release notes say this affects the propertyDefinitions export by adding information about longhands.
v6.1.0
3 months agoRelease 6.1.0 adds a new public export, parsePropertyValue, to lib/index.js. The diff also updates several dependencies in package.json and package-lock.json, including a major version bump of @asamuzakjp/css-color, which can indirectly change CSS parsing behavior.
Featuresv6.0.2
3 months agoThis patch release (v6.0.2) improves CSS parsing behavior, specifically around how `font-family` lists handle empty entries. It also includes changes to the property descriptor generation and serialization logic related to function types.
v6.0.1
4 months agoRelease 6.0.1 fixes two issues: incorrect results from getPropertyPriority(), and incorrect handling of case-sensitive content inside CSS function arguments (for example path("m 5,5 ...")). The code changes also adjust how function argument casing is computed and improve priority propagation when setting parsed property values.
v6.0.0
4 months agoVersion 6.0.0 is a large refactor and ruleset update aimed at matching current CSS specs more closely, including expanding the supported CSS properties set and improving generic parsing/serialization conformance. It also refactors the CSSOM implementation (CSSStyleDeclaration) and switches the exported property metadata from a plain object to a Map. The release notes document the property list export change and some CSSStyleDeclaration behavioral tweaks, but the code diff shows additional API and behavior changes not mentioned.
BreakingFeaturesv5.3.7
5 months agoRelease v5.3.7 documents two bug fixes related to CSS value handling: converting non-string values assigned to CSS properties into strings correctly, and fixing a regression where negative `top` values were treated as invalid. The actual diff shows additional internal behavioral changes beyond those notes, mostly around value coercion and state reset during CSSStyleDeclaration updates.
v5.3.6
5 months agov5.3.6 focuses on performance and internal correctness improvements. The release notes claim a CSS parsing/validation cache was added and that large refactors were done to use more canonical CSS data sources for shorthand and property parsing grammars.
v5.3.5
5 months agoRelease v5.3.5 updates dependencies and tweaks CI/build automation. The code diff shows a concrete behavioral change in the CSS `clip` property parsing (percent handling), and the test suite no longer covers `clip`, suggesting the library's effective support for legacy `clip` syntaxes may have changed beyond what the release notes describe.
Breakingv5.3.4
6 months agov5.3.4 primarily claims a performance improvement for the `CSSStyleDeclaration#cssText` setter. The code change optimizes how it captures the previous `cssText` value during updates, reducing unnecessary getter calls during internal set operations.
v5.3.3
7 months agov5.3.3 is a small bug-fix release focused on correctly parsing color values when using border-related shorthand properties. The code change updates how color strings are passed into the color parser for border, border-top, border-right, border-bottom, and border-left.