cssstyle 5.3.3 → 5.3.5

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.
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // autogenerated - 2025-11-08
2
+ // autogenerated - 2025-12-17
3
3
  // https://www.w3.org/Style/CSS/all-properties.en.html
4
4
 
5
5
  var external_dependency_parsers_0 = require("../parsers.js");
@@ -3406,7 +3406,7 @@ clear_export_definition = {
3406
3406
  };
3407
3407
  var clip_export_parse, clip_export_definition;
3408
3408
  // deprecated
3409
- // @see https://drafts.fxtf.org/css-masking/#clip-property
3409
+ // @see https://drafts.csswg.org/css-masking-1/#clip-property
3410
3410
 
3411
3411
  const clip_local_var_property = "clip";
3412
3412
  clip_export_parse = function parse(v, opt = {}) {
@@ -3437,7 +3437,7 @@ clip_export_parse = function parse(v, opt = {}) {
3437
3437
  const parsedValue = external_dependency_parsers_0.parseCSS(item, {
3438
3438
  context: "value"
3439
3439
  }, true);
3440
- const val = external_dependency_parsers_0.parseLengthPercentage(parsedValue.children);
3440
+ const val = external_dependency_parsers_0.parseLength(parsedValue.children);
3441
3441
  if (val) {
3442
3442
  parsedValues.push(val);
3443
3443
  } else {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  // deprecated
3
- // @see https://drafts.fxtf.org/css-masking/#clip-property
3
+ // @see https://drafts.csswg.org/css-masking-1/#clip-property
4
4
 
5
5
  const parsers = require("../parsers");
6
6
 
@@ -25,7 +25,7 @@ module.exports.parse = function parse(v, opt = {}) {
25
25
  const parsedValues = [];
26
26
  for (const item of values) {
27
27
  const parsedValue = parsers.parseCSS(item, { context: "value" }, true);
28
- const val = parsers.parseLengthPercentage(parsedValue.children);
28
+ const val = parsers.parseLength(parsedValue.children);
29
29
  if (val) {
30
30
  parsedValues.push(val);
31
31
  } else {
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "CSSStyleDeclaration",
7
7
  "StyleSheet"
8
8
  ],
9
- "version": "5.3.3",
9
+ "version": "5.3.5",
10
10
  "homepage": "https://github.com/jsdom/cssstyle",
11
11
  "maintainers": [
12
12
  {
@@ -37,35 +37,33 @@
37
37
  ],
38
38
  "main": "./lib/CSSStyleDeclaration.js",
39
39
  "dependencies": {
40
- "@asamuzakjp/css-color": "^4.0.3",
41
- "@csstools/css-syntax-patches-for-csstree": "^1.0.14",
40
+ "@asamuzakjp/css-color": "^4.1.1",
41
+ "@csstools/css-syntax-patches-for-csstree": "^1.0.21",
42
42
  "css-tree": "^3.1.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@babel/generator": "^7.28.0",
46
- "@babel/parser": "^7.28.0",
47
- "@babel/traverse": "^7.28.0",
48
- "@babel/types": "^7.28.2",
45
+ "@babel/generator": "^7.28.5",
46
+ "@babel/parser": "^7.28.5",
47
+ "@babel/traverse": "^7.28.5",
48
+ "@babel/types": "^7.28.5",
49
49
  "@domenic/eslint-config": "^4.0.1",
50
- "@webref/css": "^6.23.6",
51
- "eslint": "^9.32.0",
50
+ "@webref/css": "^8.1.1",
51
+ "eslint": "^9.39.1",
52
52
  "eslint-config-prettier": "^10.1.8",
53
- "eslint-plugin-prettier": "^5.5.3",
54
- "globals": "^16.3.0",
53
+ "eslint-plugin-prettier": "^5.5.4",
54
+ "globals": "^16.5.0",
55
55
  "npm-run-all": "^4.1.5",
56
- "prettier": "^3.6.2",
57
- "resolve": "^1.22.10"
56
+ "prettier": "^3.7.4",
57
+ "resolve": "^1.22.11"
58
58
  },
59
59
  "scripts": {
60
60
  "download": "node ./scripts/downloadLatestProperties.mjs",
61
- "generate": "run-p generate:*",
62
- "generate:implemented_properties": "node ./scripts/generateImplementedProperties.mjs",
63
- "generate:properties": "node ./scripts/generateProperties.js",
64
- "lint": "npm run generate && eslint --max-warnings 0",
61
+ "lint": "eslint --max-warnings 0",
65
62
  "lint:fix": "eslint --fix --max-warnings 0",
66
- "prepublishOnly": "npm run lint && npm run test",
67
- "test": "npm run generate && node --test",
68
- "test-ci": "npm run lint && npm run test"
63
+ "prepare": "run-p prepare:*",
64
+ "prepare:implemented_properties": "node ./scripts/generateImplementedProperties.mjs",
65
+ "prepare:properties": "node ./scripts/generateProperties.js",
66
+ "test": "node --test"
69
67
  },
70
68
  "license": "MIT",
71
69
  "engines": {