cssstyle 5.3.1 → 5.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -186,7 +186,19 @@ class CSSStyleDeclaration {
186
186
  );
187
187
  if (valueObj?.children) {
188
188
  const properties = new Map();
189
+ let shouldSkipNext = false;
189
190
  for (const item of valueObj.children) {
191
+ if (item.type === "Atrule") {
192
+ continue;
193
+ }
194
+ if (item.type === "Rule") {
195
+ shouldSkipNext = true;
196
+ continue;
197
+ }
198
+ if (shouldSkipNext === true) {
199
+ shouldSkipNext = false;
200
+ continue;
201
+ }
190
202
  const {
191
203
  important,
192
204
  property,
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // autogenerated - 2025-09-21
2
+ // autogenerated - 2025-10-31
3
3
 
4
4
  module.exports = new Map([
5
5
  [
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // autogenerated - 2025-09-21
2
+ // autogenerated - 2025-10-31
3
3
  // https://www.w3.org/Style/CSS/all-properties.en.html
4
4
 
5
5
  var external_dependency_parsers_0 = require("../parsers.js");
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "CSSStyleDeclaration",
7
7
  "StyleSheet"
8
8
  ],
9
- "version": "5.3.1",
9
+ "version": "5.3.2",
10
10
  "homepage": "https://github.com/jsdom/cssstyle",
11
11
  "maintainers": [
12
12
  {