diff --git a/package-lock.json b/package-lock.json index d48408a1a..5cfa2a39b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3614,9 +3614,9 @@ } }, "node_modules/@types/node": { - "version": "22.8.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.8.7.tgz", - "integrity": "sha512-LidcG+2UeYIWcMuMUpBKOnryBWG/rnmOHQR5apjn8myTQcx3rinFRn7DcIFhMnS0PPFSC6OafdIKEad0lj6U0Q==", + "version": "22.9.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.9.0.tgz", + "integrity": "sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ==", "dev": true, "dependencies": { "undici-types": "~6.19.8" @@ -3645,16 +3645,16 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.12.2.tgz", - "integrity": "sha512-gQxbxM8mcxBwaEmWdtLCIGLfixBMHhQjBqR8sVWNTPpcj45WlYL2IObS/DNMLH1DBP0n8qz+aiiLTGfopPEebw==", + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.13.0.tgz", + "integrity": "sha512-nQtBLiZYMUPkclSeC3id+x4uVd1SGtHuElTxL++SfP47jR0zfkZBJHc+gL4qPsgTuypz0k8Y2GheaDYn6Gy3rg==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.10.0", - "@typescript-eslint/scope-manager": "8.12.2", - "@typescript-eslint/type-utils": "8.12.2", - "@typescript-eslint/utils": "8.12.2", - "@typescript-eslint/visitor-keys": "8.12.2", + "@typescript-eslint/scope-manager": "8.13.0", + "@typescript-eslint/type-utils": "8.13.0", + "@typescript-eslint/utils": "8.13.0", + "@typescript-eslint/visitor-keys": "8.13.0", "graphemer": "^1.4.0", "ignore": "^5.3.1", "natural-compare": "^1.4.0", @@ -3678,15 +3678,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.12.2.tgz", - "integrity": "sha512-MrvlXNfGPLH3Z+r7Tk+Z5moZAc0dzdVjTgUgwsdGweH7lydysQsnSww3nAmsq8blFuRD5VRlAr9YdEFw3e6PBw==", + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.13.0.tgz", + "integrity": "sha512-w0xp+xGg8u/nONcGw1UXAr6cjCPU1w0XVyBs6Zqaj5eLmxkKQAByTdV/uGgNN5tVvN/kKpoQlP2cL7R+ajZZIQ==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "8.12.2", - "@typescript-eslint/types": "8.12.2", - "@typescript-eslint/typescript-estree": "8.12.2", - "@typescript-eslint/visitor-keys": "8.12.2", + "@typescript-eslint/scope-manager": "8.13.0", + "@typescript-eslint/types": "8.13.0", + "@typescript-eslint/typescript-estree": "8.13.0", + "@typescript-eslint/visitor-keys": "8.13.0", "debug": "^4.3.4" }, "engines": { @@ -3706,13 +3706,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.12.2.tgz", - "integrity": "sha512-gPLpLtrj9aMHOvxJkSbDBmbRuYdtiEbnvO25bCMza3DhMjTQw0u7Y1M+YR5JPbMsXXnSPuCf5hfq0nEkQDL/JQ==", + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.13.0.tgz", + "integrity": "sha512-XsGWww0odcUT0gJoBZ1DeulY1+jkaHUciUq4jKNv4cpInbvvrtDoyBH9rE/n2V29wQJPk8iCH1wipra9BhmiMA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.12.2", - "@typescript-eslint/visitor-keys": "8.12.2" + "@typescript-eslint/types": "8.13.0", + "@typescript-eslint/visitor-keys": "8.13.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3723,13 +3723,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.12.2.tgz", - "integrity": "sha512-bwuU4TAogPI+1q/IJSKuD4shBLc/d2vGcRT588q+jzayQyjVK2X6v/fbR4InY2U2sgf8MEvVCqEWUzYzgBNcGQ==", + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.13.0.tgz", + "integrity": "sha512-Rqnn6xXTR316fP4D2pohZenJnp+NwQ1mo7/JM+J1LWZENSLkJI8ID8QNtlvFeb0HnFSK94D6q0cnMX6SbE5/vA==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "8.12.2", - "@typescript-eslint/utils": "8.12.2", + "@typescript-eslint/typescript-estree": "8.13.0", + "@typescript-eslint/utils": "8.13.0", "debug": "^4.3.4", "ts-api-utils": "^1.3.0" }, @@ -3747,9 +3747,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.12.2.tgz", - "integrity": "sha512-VwDwMF1SZ7wPBUZwmMdnDJ6sIFk4K4s+ALKLP6aIQsISkPv8jhiw65sAK6SuWODN/ix+m+HgbYDkH+zLjrzvOA==", + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.13.0.tgz", + "integrity": "sha512-4cyFErJetFLckcThRUFdReWJjVsPCqyBlJTi6IDEpc1GWCIIZRFxVppjWLIMcQhNGhdWJJRYFHpHoDWvMlDzng==", "dev": true, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3760,13 +3760,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.12.2.tgz", - "integrity": "sha512-mME5MDwGe30Pq9zKPvyduyU86PH7aixwqYR2grTglAdB+AN8xXQ1vFGpYaUSJ5o5P/5znsSBeNcs5g5/2aQwow==", + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.13.0.tgz", + "integrity": "sha512-v7SCIGmVsRK2Cy/LTLGN22uea6SaUIlpBcO/gnMGT/7zPtxp90bphcGf4fyrCQl3ZtiBKqVTG32hb668oIYy1g==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.12.2", - "@typescript-eslint/visitor-keys": "8.12.2", + "@typescript-eslint/types": "8.13.0", + "@typescript-eslint/visitor-keys": "8.13.0", "debug": "^4.3.4", "fast-glob": "^3.3.2", "is-glob": "^4.0.3", @@ -3824,15 +3824,15 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.12.2.tgz", - "integrity": "sha512-UTTuDIX3fkfAz6iSVa5rTuSfWIYZ6ATtEocQ/umkRSyC9O919lbZ8dcH7mysshrCdrAM03skJOEYaBugxN+M6A==", + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.13.0.tgz", + "integrity": "sha512-A1EeYOND6Uv250nybnLZapeXpYMl8tkzYUxqmoKAWnI4sei3ihf2XdZVd+vVOmHGcp3t+P7yRrNsyyiXTvShFQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", - "@typescript-eslint/scope-manager": "8.12.2", - "@typescript-eslint/types": "8.12.2", - "@typescript-eslint/typescript-estree": "8.12.2" + "@typescript-eslint/scope-manager": "8.13.0", + "@typescript-eslint/types": "8.13.0", + "@typescript-eslint/typescript-estree": "8.13.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -3846,12 +3846,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.12.2.tgz", - "integrity": "sha512-PChz8UaKQAVNHghsHcPyx1OMHoFRUEA7rJSK/mDhdq85bk+PLsUHUBqTQTFt18VJZbmxBovM65fezlheQRsSDA==", + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.13.0.tgz", + "integrity": "sha512-7N/+lztJqH4Mrf0lb10R/CbI1EaAMMGyF5y0oJvFoAhafwgiRA7TXyd8TFn8FC8k5y2dTsYogg238qavRGNnlw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "8.12.2", + "@typescript-eslint/types": "8.13.0", "eslint-visitor-keys": "^3.4.3" }, "engines": { @@ -3875,9 +3875,9 @@ } }, "node_modules/@webref/css": { - "version": "6.17.0", - "resolved": "https://registry.npmjs.org/@webref/css/-/css-6.17.0.tgz", - "integrity": "sha512-5flhd3Wuokf9gNKhFmJ+SlG4tb2+qCXXBB3jo0RG7i9LuigYaZxJd0FqyNsVtTqJwSEXHt9AshTjN82ESr5k6g==", + "version": "6.17.1", + "resolved": "https://registry.npmjs.org/@webref/css/-/css-6.17.1.tgz", + "integrity": "sha512-JLLP7NidctxEt7TuKfuRQFfrdY7vN351uI3CU9SwufvYPLJ2ie0aDYi3YHDdMJzQF7wD/1Qyro1mCjOnrvVHPw==", "dev": true, "peerDependencies": { "css-tree": "^2.3.1" @@ -4628,6 +4628,12 @@ "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" } }, + "node_modules/css-tree-3/node_modules/mdn-data": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.12.1.tgz", + "integrity": "sha512-rsfnCbOHjqrhWxwt5/wtSLzpoKTzW7OXdT5lLOIH1OTYhWu9rRJveGq0sKvDZODABH7RX+uoR+DYcpFnq4Tf6Q==", + "dev": true + }, "node_modules/css-tree/node_modules/mdn-data": { "version": "2.0.30", "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz", @@ -4801,9 +4807,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.50", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.50.tgz", - "integrity": "sha512-eMVObiUQ2LdgeO1F/ySTXsvqvxb6ZH2zPGaMYsWzRDdOddUa77tdmI0ltg+L16UpbWdhPmuF3wIQYyQq65WfZw==" + "version": "1.5.51", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.51.tgz", + "integrity": "sha512-kKeWV57KSS8jH4alKt/jKnvHPmJgBxXzGUSbMd4eQF+iOsVPl7bz2KUmu6eo80eMP8wVioTfTyTzdMgM15WXNg==" }, "node_modules/emoji-regex": { "version": "10.4.0", @@ -6337,9 +6343,9 @@ } }, "node_modules/mdn-data": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.12.1.tgz", - "integrity": "sha512-rsfnCbOHjqrhWxwt5/wtSLzpoKTzW7OXdT5lLOIH1OTYhWu9rRJveGq0sKvDZODABH7RX+uoR+DYcpFnq4Tf6Q==", + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.12.2.tgz", + "integrity": "sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==", "dev": true }, "node_modules/meow": { @@ -7969,6 +7975,12 @@ "node": ">= 4" } }, + "node_modules/stylelint/node_modules/mdn-data": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.12.1.tgz", + "integrity": "sha512-rsfnCbOHjqrhWxwt5/wtSLzpoKTzW7OXdT5lLOIH1OTYhWu9rRJveGq0sKvDZODABH7RX+uoR+DYcpFnq4Tf6Q==", + "dev": true + }, "node_modules/stylelint/node_modules/postcss-selector-parser": { "version": "6.1.2", "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", @@ -8279,14 +8291,14 @@ } }, "node_modules/typescript-eslint": { - "version": "8.12.2", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.12.2.tgz", - "integrity": "sha512-UbuVUWSrHVR03q9CWx+JDHeO6B/Hr9p4U5lRH++5tq/EbFq1faYZe50ZSBePptgfIKLEti0aPQ3hFgnPVcd8ZQ==", + "version": "8.13.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.13.0.tgz", + "integrity": "sha512-vIMpDRJrQd70au2G8w34mPps0ezFSPMEX4pXkTzUkrNbRX+36ais2ksGWN0esZL+ZMaFJEneOBHzCgSqle7DHw==", "dev": true, "dependencies": { - "@typescript-eslint/eslint-plugin": "8.12.2", - "@typescript-eslint/parser": "8.12.2", - "@typescript-eslint/utils": "8.12.2" + "@typescript-eslint/eslint-plugin": "8.13.0", + "@typescript-eslint/parser": "8.13.0", + "@typescript-eslint/utils": "8.13.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -8781,7 +8793,7 @@ ], "license": "MIT-0", "devDependencies": { - "@webref/css": "^6.17.0", + "@webref/css": "^6.17.1", "css-tree": "^2.3.1", "css-tree-3": "npm:css-tree@^3.0.1" }, diff --git a/packages/css-syntax-patches-for-csstree/CHANGELOG.md b/packages/css-syntax-patches-for-csstree/CHANGELOG.md index db6d332bf..b605514aa 100644 --- a/packages/css-syntax-patches-for-csstree/CHANGELOG.md +++ b/packages/css-syntax-patches-for-csstree/CHANGELOG.md @@ -1,5 +1,9 @@ # Changes to CSS Syntax Patches For CSSTree +### Unreleased (patch) + +- Update `@webref/css` to [`v6.17.1`](https://github.com/w3c/webref/releases/tag/%40webref%2Fraw-css%406.17.1) + ### 1.0.2 _November 4, 2024_ diff --git a/packages/css-syntax-patches-for-csstree/dist/index.json b/packages/css-syntax-patches-for-csstree/dist/index.json index 5c6265b2c..2935fa810 100644 --- a/packages/css-syntax-patches-for-csstree/dist/index.json +++ b/packages/css-syntax-patches-for-csstree/dist/index.json @@ -181,7 +181,7 @@ "cy": "", "display": "[ || ] | | | | | <-non-standard-display> | masonry | inline-masonry | || [ | math ]", "dominant-baseline": "auto | text-bottom | text-top | use-script | no-change | reset-size | ideographic | alphabetic | hanging | mathematical | central | middle | text-after-edge | text-before-edge", - "dynamic-range-limit": "standard | high | constrained-high", + "dynamic-range-limit": "standard | high | constrained-high | ", "fill-break": "bounding-box | slice | clone", "fill-color": "", "fill-image": "#", @@ -195,7 +195,7 @@ "flex-shrink": "", "float": "| block-start | block-end | snap-block | snap-block( , [ start | end | near ]? ) | snap-inline | snap-inline( , [ left | right | near ]? ) | top | bottom | footnote", "float-defer": " | last | none", - "float-offset": " | ", + "float-offset": "", "float-reference": "inline | column | region | page", "flood-color": "", "flood-opacity": "<'opacity'>", @@ -284,7 +284,8 @@ "object-view-box": "none | ", "opacity": "", "orphans": "", - "outline-color": "auto | [ | ]", + "outline": "<'outline-width'> || <'outline-style'> || <'outline-color'>", + "outline-color": "| ", "outline-style": "auto | none | dotted | dashed | solid | double | groove | ridge | inset | outset", "overflow": "<'overflow-block'>{1,2} | <-non-standard-overflow>", "overflow-clip-margin-block": " || ", @@ -436,8 +437,7 @@ "arc-size": "large | small", "arc-sweep": "cw | ccw", "attr-name": "[ [ '|' ]? ]", - "attr-type": "string | ident | color | number | percentage | length | angle | time | frequency | flex | ", - "attr()": "attr( [ ? , ? ] )", + "attr()": "attr( ? , ? )", "autospace": "no-autospace | [ ideograph-alpha || ideograph-numeric || punctuation ] || [ insert | replace ]", "axis": "block | inline | x | y", "baseline-position": "[ first | last ]? && baseline", @@ -472,7 +472,7 @@ "conic-gradient-syntax": "[ [ [ from ]? [ at ]? ] || ]? , ", "conic-gradient()": "conic-gradient( [ ] )", "container-condition": "[ ]? ", - "container-progress()": "container-progress( [ of ]? from to )", + "container-progress()": "container-progress( [ of ]? , , )", "container-query": "not | [ [ and ]* | [ or ]* ]", "content-level": "element | content | text | | ", "content-list": "[ | | | contents | | | | | | | | ]+", @@ -492,8 +492,7 @@ "custom-params": " [ | | none ]+", "dasharray": "[ [ | ]+ ]#", "deprecated-color": "ActiveBorder | ActiveCaption | AppWorkspace | Background | ButtonHighlight | ButtonShadow | CaptionText | InactiveBorder | InactiveCaption | InactiveCaptionText | InfoBackground | InfoText | Menu | MenuText | Scrollbar | ThreeDDarkShadow | ThreeDFace | ThreeDHighlight | ThreeDLightShadow | ThreeDShadow | Window | WindowFrame | WindowText", - "dimension-unit": "'%' | em | ex | cap | ch | ic | rem | lh | rlh | vw | vh | vi | vb | vmin | vmax | cm | mm | q | in | pc | pt | px | deg | grad | rad | turn | s | ms | hz | khz | fr", - "dynamic-range-limit-mix()": "dynamic-range-limit-mix( [ && ? ]#{2} )", + "dynamic-range-limit-mix()": "dynamic-range-limit-mix( [ && ]+ )", "easing-function": " | | ", "element()": "element( )", "env()": "env( * , ? )", @@ -526,6 +525,7 @@ "image-tags": "[ ltr | rtl ]", "import-conditions": "[ supports( [ | ] ) ]? ?", "inflexible-breadth": " | min-content | max-content | auto", + "inherit()": "inherit( , ? )", "integrity-modifier": "integrity( )", "intrinsic-size-keyword": "auto | max-content | min-content | stretch", "isolation-mode": "auto | isolate", @@ -552,14 +552,14 @@ "media-condition": " | [ * | * ]", "media-condition-without-or": " | *", "media-or": "or ", - "media-progress()": "media-progress( from to )", + "media-progress()": "media-progress( , , )", "media()": "media( [ | | ] )", "mf-comparison": " | | ", "mf-eq": "'='", "mf-gt": "'>' '='?", "mf-lt": "'<' '='?", "mf-range": " | | | ", - "mix()": "mix( , , ) | mix( && of <'animation-name'> )", + "mix()": "mix( , , ) | mix( && of )", "modern-hsl-syntax": "hsl( [ from ]? [ | none ] [ | | none ] [ | | none ] [ / [ | none ] ]? )", "modern-hsla-syntax": "hsla( [ from ]? [ | none ] [ | | none ] [ | | none ] [ / [ | none ] ]? )", "modern-rgb-syntax": "rgb( [ from ]? [ | | none ]{3} [ / [ | none ] ]? )", @@ -588,7 +588,7 @@ "predefined-rectangular-params": " [ | | none ]{3}", "predefined-rgb": "srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020 | rec2100-pq | rec2100-hlg | rec2100-linear", "progress": "[ | | <'animation-timeline'> ] && [ by ]?", - "progress()": "progress( from to )", + "progress()": "progress( , , )", "pseudo-page": "':' [ left | right | first | blank ]", "pt-class-selector": "[ '.' ]+", "pt-name-and-class-selector": " ? | ", @@ -605,7 +605,6 @@ "ray()": "ray( [ && ? && contain? && [ at ]? ] )", "referrerpolicy-modifier": "referrerpolicy( no-referrer | no-referrer-when-downgrade | same-origin | origin | strict-origin | origin-when-cross-origin | strict-origin-when-cross-origin | unsafe-url )", "repeat-style": "repeat-x | repeat-y | {1,2}", - "repeat()": "auto-fill | auto-fit", "repeating-conic-gradient()": "repeating-conic-gradient( [ ] )", "repeating-linear-gradient()": "repeating-linear-gradient( [ ] )", "repeating-radial-gradient()": "repeating-radial-gradient( [ ] )", @@ -646,11 +645,12 @@ "svg-paint": "child | child( )", "symbols-type": "cyclic | numeric | alphabetic | symbolic | fixed", "symbols()": "symbols( ? [ | ]+ )", - "syntax": "'*' | [ ]+", + "syntax": "'*' | [ ]* | ", "syntax-combinator": "'|'", "syntax-component": " ? | '<' transform-list '>'", "syntax-multiplier": "[ '#' | '+' ]", "syntax-single-component": "'<' '>' | ", + "syntax-string": "", "syntax-type-name": "angle | color | custom-ident | image | integer | length | length-percentage | number | percentage | resolution | string | time | url | transform-function", "target-contrast": "", "text-edge": "[ text | cap | ex | ideographic | ideographic-ink ] [ text | alphabetic | ideographic | ideographic-ink ]?", diff --git a/packages/css-syntax-patches-for-csstree/package.json b/packages/css-syntax-patches-for-csstree/package.json index ad8bf7bd3..f0c1478b6 100644 --- a/packages/css-syntax-patches-for-csstree/package.json +++ b/packages/css-syntax-patches-for-csstree/package.json @@ -39,7 +39,7 @@ "postcss": "^8.4" }, "devDependencies": { - "@webref/css": "^6.17.0", + "@webref/css": "^6.17.1", "css-tree": "^2.3.1", "css-tree-3": "npm:css-tree@^3.0.1" }, diff --git a/packages/css-syntax-patches-for-csstree/patches/webref-over-csstree-properties.json b/packages/css-syntax-patches-for-csstree/patches/webref-over-csstree-properties.json index 3ff876f1c..06de95c30 100644 --- a/packages/css-syntax-patches-for-csstree/patches/webref-over-csstree-properties.json +++ b/packages/css-syntax-patches-for-csstree/patches/webref-over-csstree-properties.json @@ -1901,8 +1901,8 @@ "type": "added", "comment": "", "syntax-b": "", - "syntax-a": "standard | high | constrained-high", - "syntax-m": "standard | high | constrained-high", + "syntax-a": "standard | high | constrained-high | ", + "syntax-m": "standard | high | constrained-high | ", "tests": { "passing": [], "failing": [] @@ -2066,8 +2066,8 @@ "type": "added", "comment": "", "syntax-b": "", - "syntax-a": " | ", - "syntax-m": " | ", + "syntax-a": "", + "syntax-m": "", "tests": { "passing": [], "failing": [] @@ -3224,12 +3224,23 @@ "failing": [] } }, + "outline": { + "type": "modified", + "comment": "", + "syntax-b": "[ <'outline-width'> || <'outline-style'> || <'outline-color'> ]", + "syntax-a": "<'outline-width'> || <'outline-style'> || <'outline-color'>", + "syntax-m": "<'outline-width'> || <'outline-style'> || <'outline-color'>", + "tests": { + "passing": [], + "failing": [] + } + }, "outline-color": { "type": "modified", "comment": "", "syntax-b": "auto | ", - "syntax-a": "auto | [ | ]", - "syntax-m": "auto | [ | ]", + "syntax-a": "auto | | ", + "syntax-m": "| ", "tests": { "passing": [], "failing": [] diff --git a/packages/css-syntax-patches-for-csstree/patches/webref-over-csstree-types.json b/packages/css-syntax-patches-for-csstree/patches/webref-over-csstree-types.json index 53caab3ce..625e0e7b4 100644 --- a/packages/css-syntax-patches-for-csstree/patches/webref-over-csstree-types.json +++ b/packages/css-syntax-patches-for-csstree/patches/webref-over-csstree-types.json @@ -256,32 +256,7 @@ "failing": [ { "property": "content", - "value": "attr(value data-value)" - } - ] - } - }, - "attr-type": { - "type": "added", - "comment": "", - "syntax-b": "", - "syntax-a": "string | ident | color | number | percentage | length | angle | time | frequency | flex | ", - "syntax-m": "string | ident | color | number | percentage | length | angle | time | frequency | flex | ", - "tests": { - "passing": [ - { - "property": "content", - "value": "attr(value color)" - }, - { - "property": "content", - "value": "attr(value ident)" - } - ], - "failing": [ - { - "property": "content", - "value": "attr(value foo)" + "value": "attr(value ><)" } ] } @@ -290,8 +265,8 @@ "type": "modified", "comment": "", "syntax-b": "attr( ? [, ]? )", - "syntax-a": "attr( ? , ? )", - "syntax-m": "attr( [ ? , ? ] )", + "syntax-a": "attr( ? , ? )", + "syntax-m": "attr( ? , ? )", "tests": { "passing": [ { @@ -300,21 +275,25 @@ }, { "property": "content", - "value": "attr(value string)" + "value": "attr(value )" }, { "property": "content", - "value": "attr(value string)" - }, - { - "property": "content", - "value": "attr(value string, 'foo')" + "value": "attr(value foo)" } ], "failing": [ + { + "property": "content", + "value": "attr(value ><)" + }, { "property": "content", "value": "attr(value string 'string')" + }, + { + "property": "content", + "value": "attr(value <)" } ] } @@ -455,78 +434,6 @@ "failing": [] } }, - "bool-and": { - "type": "added", - "comment": "", - "omit": true, - "syntax-b": "", - "syntax-a": "and ", - "syntax-m": "and ", - "tests": { - "passing": [], - "failing": [] - } - }, - "bool-in-parens": { - "type": "added", - "comment": "", - "omit": true, - "syntax-b": "", - "syntax-a": "( ) | | ", - "syntax-m": "( ) | | ", - "tests": { - "passing": [], - "failing": [] - } - }, - "bool-not": { - "type": "added", - "comment": "", - "omit": true, - "syntax-b": "", - "syntax-a": "not ", - "syntax-m": "not ", - "tests": { - "passing": [], - "failing": [] - } - }, - "bool-or": { - "type": "added", - "comment": "", - "omit": true, - "syntax-b": "", - "syntax-a": "or ", - "syntax-m": "or ", - "tests": { - "passing": [], - "failing": [] - } - }, - "boolean": { - "type": "added", - "comment": "", - "omit": true, - "syntax-b": "", - "syntax-a": " | [ * | * ]", - "syntax-m": " | [ * | * ]", - "tests": { - "passing": [], - "failing": [] - } - }, - "boolean-without-or": { - "type": "added", - "comment": "", - "omit": true, - "syntax-b": "", - "syntax-a": " | *", - "syntax-m": " | *", - "tests": { - "passing": [], - "failing": [] - } - }, "border-style": { "type": "added", "comment": "", @@ -932,8 +839,8 @@ "type": "added", "comment": "", "syntax-b": "", - "syntax-a": "container-progress( [ of ]? from to )", - "syntax-m": "container-progress( [ of ]? from to )", + "syntax-a": "container-progress( [ of ]? , , )", + "syntax-m": "container-progress( [ of ]? , , )", "tests": { "passing": [], "failing": [] @@ -1231,31 +1138,6 @@ "failing": [] } }, - "dimension-unit": { - "type": "added", - "comment": "", - "syntax-b": "", - "syntax-a": "'%' | em | ex | cap | ch | ic | rem | lh | rlh | vw | vh | vi | vb | vmin | vmax | cm | mm | q | in | pc | pt | px | deg | grad | rad | turn | s | ms | hz | khz | fr", - "syntax-m": "'%' | em | ex | cap | ch | ic | rem | lh | rlh | vw | vh | vi | vb | vmin | vmax | cm | mm | q | in | pc | pt | px | deg | grad | rad | turn | s | ms | hz | khz | fr", - "tests": { - "passing": [ - { - "property": "content", - "value": "attr(value %)" - }, - { - "property": "content", - "value": "attr(value px)" - } - ], - "failing": [ - { - "property": "content", - "value": "attr(value foo)" - } - ] - } - }, "display-legacy": { "type": "modified", "comment": "", @@ -1271,8 +1153,8 @@ "type": "added", "comment": "", "syntax-b": "", - "syntax-a": "dynamic-range-limit-mix( [ && ? ]#{2} )", - "syntax-m": "dynamic-range-limit-mix( [ && ? ]#{2} )", + "syntax-a": "dynamic-range-limit-mix( [ && ]+ )", + "syntax-m": "dynamic-range-limit-mix( [ && ]+ )", "tests": { "passing": [], "failing": [] @@ -1638,6 +1520,30 @@ ] } }, + "if-test": { + "type": "added", + "comment": "", + "omit": true, + "syntax-b": "", + "syntax-a": "supports( [ | : ] ) | media( ) | style( )", + "syntax-m": "supports( [ | : ] ) | media( ) | style( )", + "tests": { + "passing": [], + "failing": [] + } + }, + "if()": { + "type": "added", + "comment": "", + "omit": true, + "syntax-b": "", + "syntax-a": "if( [ : ? ; ]* : ? ';'? )", + "syntax-m": "if( [ : ? ; ]* : ? ';'? )", + "tests": { + "passing": [], + "failing": [] + } + }, "image": { "type": "modified", "comment": "https://developer.mozilla.org/en-US/docs/Web/CSS/image/paint", @@ -1730,6 +1636,17 @@ "failing": [] } }, + "inherit()": { + "type": "added", + "comment": "", + "syntax-b": "", + "syntax-a": "inherit( , ? )", + "syntax-m": "inherit( , ? )", + "tests": { + "passing": [], + "failing": [] + } + }, "integrity-modifier": { "type": "added", "comment": "", @@ -2268,8 +2185,8 @@ "type": "added", "comment": "", "syntax-b": "", - "syntax-a": "media-progress( from to )", - "syntax-m": "media-progress( from to )", + "syntax-a": "media-progress( , , )", + "syntax-m": "media-progress( , , )", "tests": { "passing": [], "failing": [] @@ -2345,8 +2262,8 @@ "type": "added", "comment": "TODO: csstree doesn't support https://github.com/csstree/csstree/issues/300", "syntax-b": "", - "syntax-a": "mix( , , ) | mix( && of <'animation-name'> )", - "syntax-m": "mix( , , ) | mix( && of <'animation-name'> )", + "syntax-a": "mix( , , ) | mix( && of )", + "syntax-m": "mix( , , ) | mix( && of )", "tests": { "passing": [], "failing": [] @@ -2941,8 +2858,8 @@ "type": "added", "comment": "", "syntax-b": "", - "syntax-a": "progress( from to )", - "syntax-m": "progress( from to )", + "syntax-a": "progress( , , )", + "syntax-m": "progress( , , )", "tests": { "passing": [], "failing": [] @@ -3180,17 +3097,6 @@ "failing": [] } }, - "repeat()": { - "type": "added", - "comment": "", - "syntax-b": "", - "syntax-a": "auto-fill | auto-fit", - "syntax-m": "auto-fill | auto-fit", - "tests": { - "passing": [], - "failing": [] - } - }, "repeating-conic-gradient()": { "type": "modified", "comment": "", @@ -3779,8 +3685,8 @@ "type": "added", "comment": "", "syntax-b": "", - "syntax-a": "'*' | [ ]+", - "syntax-m": "'*' | [ ]+", + "syntax-a": "'*' | [ ]* | ", + "syntax-m": "'*' | [ ]* | ", "tests": { "passing": [], "failing": [] @@ -3830,6 +3736,17 @@ "failing": [] } }, + "syntax-string": { + "type": "added", + "comment": "", + "syntax-b": "", + "syntax-a": "", + "syntax-m": "", + "tests": { + "passing": [], + "failing": [] + } + }, "syntax-type-name": { "type": "added", "comment": "", diff --git a/packages/css-syntax-patches-for-csstree/raw-data/units.json b/packages/css-syntax-patches-for-csstree/raw-data/units.json deleted file mode 100644 index 0bdee273a..000000000 --- a/packages/css-syntax-patches-for-csstree/raw-data/units.json +++ /dev/null @@ -1,39 +0,0 @@ -[ - "'%'", - - "em", - "ex", - "cap", - "ch", - "ic", - "rem", - "lh", - "rlh", - "vw", - "vh", - "vi", - "vb", - "vmin", - "vmax", - - "cm", - "mm", - "q", - "in", - "pc", - "pt", - "px", - - "deg", - "grad", - "rad", - "turn", - - "s", - "ms", - - "hz", - "khz", - - "fr" -] diff --git a/packages/css-syntax-patches-for-csstree/raw-data/webref-over-csstree-properties.json b/packages/css-syntax-patches-for-csstree/raw-data/webref-over-csstree-properties.json index 03f06172d..900beb01b 100644 --- a/packages/css-syntax-patches-for-csstree/raw-data/webref-over-csstree-properties.json +++ b/packages/css-syntax-patches-for-csstree/raw-data/webref-over-csstree-properties.json @@ -716,7 +716,7 @@ "dynamic-range-limit": { "type": "added", "syntax-b": "", - "syntax-a": "standard | high | constrained-high", + "syntax-a": "standard | high | constrained-high | ", "comment": "" }, "field-sizing": { @@ -806,7 +806,7 @@ "float-offset": { "type": "added", "syntax-b": "", - "syntax-a": " | ", + "syntax-a": "", "comment": "" }, "float-reference": { @@ -1367,10 +1367,16 @@ "syntax-a": "", "comment": "" }, + "outline": { + "type": "modified", + "syntax-b": "[ <'outline-width'> || <'outline-style'> || <'outline-color'> ]", + "syntax-a": "<'outline-width'> || <'outline-style'> || <'outline-color'>", + "comment": "" + }, "outline-color": { "type": "modified", "syntax-b": "auto | ", - "syntax-a": "auto | [ | ]", + "syntax-a": "auto | | ", "comment": "" }, "outline-style": { diff --git a/packages/css-syntax-patches-for-csstree/raw-data/webref-over-csstree-types.json b/packages/css-syntax-patches-for-csstree/raw-data/webref-over-csstree-types.json index 03762427d..fa3a5e4e2 100644 --- a/packages/css-syntax-patches-for-csstree/raw-data/webref-over-csstree-types.json +++ b/packages/css-syntax-patches-for-csstree/raw-data/webref-over-csstree-types.json @@ -53,16 +53,10 @@ "syntax-a": "[ '|' ]? ", "comment": "" }, - "attr-type": { - "type": "added", - "syntax-b": "", - "syntax-a": "string | ident | color | number | percentage | length | angle | time | frequency | flex | ", - "comment": "" - }, "attr()": { "type": "modified", "syntax-b": "attr( ? [, ]? )", - "syntax-a": "attr( ? , ? )", + "syntax-a": "attr( ? , ? )", "comment": "" }, "autospace": { @@ -125,42 +119,6 @@ "syntax-a": "[ | auto ]{1,2} | cover | contain", "comment": "" }, - "bool-and": { - "type": "added", - "syntax-b": "", - "syntax-a": "and ", - "comment": "" - }, - "bool-in-parens": { - "type": "added", - "syntax-b": "", - "syntax-a": "( ) | | ", - "comment": "" - }, - "bool-not": { - "type": "added", - "syntax-b": "", - "syntax-a": "not ", - "comment": "" - }, - "bool-or": { - "type": "added", - "syntax-b": "", - "syntax-a": "or ", - "comment": "" - }, - "boolean": { - "type": "added", - "syntax-b": "", - "syntax-a": " | [ * | * ]", - "comment": "" - }, - "boolean-without-or": { - "type": "added", - "syntax-b": "", - "syntax-a": " | *", - "comment": "" - }, "border-style": { "type": "added", "syntax-b": "", @@ -320,7 +278,7 @@ "container-progress()": { "type": "added", "syntax-b": "", - "syntax-a": "container-progress( [ of ]? from to )", + "syntax-a": "container-progress( [ of ]? , , )", "comment": "" }, "container-query": { @@ -443,12 +401,6 @@ "syntax-a": "ActiveBorder | ActiveCaption | AppWorkspace | Background | ButtonHighlight | ButtonShadow | CaptionText | InactiveBorder | InactiveCaption | InactiveCaptionText | InfoBackground | InfoText | Menu | MenuText | Scrollbar | ThreeDDarkShadow | ThreeDFace | ThreeDHighlight | ThreeDLightShadow | ThreeDShadow | Window | WindowFrame | WindowText", "comment": "" }, - "dimension-unit": { - "type": "added", - "syntax-b": "", - "syntax-a": "'%' | em | ex | cap | ch | ic | rem | lh | rlh | vw | vh | vi | vb | vmin | vmax | cm | mm | q | in | pc | pt | px | deg | grad | rad | turn | s | ms | hz | khz | fr", - "comment": "" - }, "display-legacy": { "type": "modified", "syntax-b": "inline-block | inline-list-item | inline-table | inline-flex | inline-grid", @@ -458,7 +410,7 @@ "dynamic-range-limit-mix()": { "type": "added", "syntax-b": "", - "syntax-a": "dynamic-range-limit-mix( [ && ? ]#{2} )", + "syntax-a": "dynamic-range-limit-mix( [ && ]+ )", "comment": "" }, "easing-function": { @@ -629,6 +581,18 @@ "syntax-a": "hwb( [ from ]? [ | none ] [ | | none ] [ | | none ] [ / [ | none ] ]? )", "comment": "" }, + "if-test": { + "type": "added", + "syntax-b": "", + "syntax-a": "supports( [ | : ] ) | media( ) | style( )", + "comment": "" + }, + "if()": { + "type": "added", + "syntax-b": "", + "syntax-a": "if( [ : ? ; ]* : ? ';'? )", + "comment": "" + }, "image": { "type": "modified", "syntax-b": " | | | | | | ", @@ -671,6 +635,12 @@ "syntax-a": " | min-content | max-content | auto", "comment": "" }, + "inherit()": { + "type": "added", + "syntax-b": "", + "syntax-a": "inherit( , ? )", + "comment": "" + }, "integrity-modifier": { "type": "added", "syntax-b": "", @@ -830,7 +800,7 @@ "media-progress()": { "type": "added", "syntax-b": "", - "syntax-a": "media-progress( from to )", + "syntax-a": "media-progress( , , )", "comment": "" }, "media()": { @@ -872,7 +842,7 @@ "mix()": { "type": "added", "syntax-b": "", - "syntax-a": "mix( , , ) | mix( && of <'animation-name'> )", + "syntax-a": "mix( , , ) | mix( && of )", "comment": "" }, "modern-hsl-syntax": { @@ -1052,7 +1022,7 @@ "progress()": { "type": "added", "syntax-b": "", - "syntax-a": "progress( from to )", + "syntax-a": "progress( , , )", "comment": "" }, "pseudo-page": { @@ -1151,12 +1121,6 @@ "syntax-a": "repeat-x | repeat-y | {1,2}", "comment": "" }, - "repeat()": { - "type": "added", - "syntax-b": "", - "syntax-a": "auto-fill | auto-fit", - "comment": "" - }, "repeating-conic-gradient()": { "type": "modified", "syntax-b": "repeating-conic-gradient( [ from ]? [ at ]? , )", @@ -1400,7 +1364,7 @@ "syntax": { "type": "added", "syntax-b": "", - "syntax-a": "'*' | [ ]+", + "syntax-a": "'*' | [ ]* | ", "comment": "" }, "syntax-combinator": { @@ -1427,6 +1391,12 @@ "syntax-a": "'<' '>' | ", "comment": "" }, + "syntax-string": { + "type": "added", + "syntax-b": "", + "syntax-a": "", + "comment": "" + }, "syntax-type-name": { "type": "added", "syntax-b": "", diff --git a/packages/css-syntax-patches-for-csstree/raw-data/webref-properties.json b/packages/css-syntax-patches-for-csstree/raw-data/webref-properties.json index 47eace5a2..e9d3affd5 100644 --- a/packages/css-syntax-patches-for-csstree/raw-data/webref-properties.json +++ b/packages/css-syntax-patches-for-csstree/raw-data/webref-properties.json @@ -726,7 +726,7 @@ "syntax": "auto | text-bottom | alphabetic | ideographic | middle | central | mathematical | hanging | text-top" }, "dynamic-range-limit": { - "syntax": "standard | high | constrained-high" + "syntax": "standard | high | constrained-high | " }, "empty-cells": { "syntax": "show | hide" @@ -825,7 +825,7 @@ "syntax": "border-box | content-box | margin-box | padding-box" }, "float-offset": { - "syntax": " | " + "syntax": "" }, "float-reference": { "syntax": "inline | column | region | page" @@ -1464,10 +1464,10 @@ "syntax": "auto | grayscale" }, "outline": { - "syntax": "[ <'outline-width'> || <'outline-style'> || <'outline-color'> ]" + "syntax": "<'outline-width'> || <'outline-style'> || <'outline-color'>" }, "outline-color": { - "syntax": "auto | [ | ]" + "syntax": "auto | | " }, "outline-offset": { "syntax": "" diff --git a/packages/css-syntax-patches-for-csstree/raw-data/webref-types.json b/packages/css-syntax-patches-for-csstree/raw-data/webref-types.json index c3067372e..efc22a6f5 100644 --- a/packages/css-syntax-patches-for-csstree/raw-data/webref-types.json +++ b/packages/css-syntax-patches-for-csstree/raw-data/webref-types.json @@ -86,11 +86,8 @@ "attr-name": { "syntax": "[ '|' ]? " }, - "attr-type": { - "syntax": "string | ident | color | number | percentage | length | angle | time | frequency | flex | " - }, "attr()": { - "syntax": "attr( ? , ? )" + "syntax": "attr( ? , ? )" }, "attribute-selector": { "syntax": "'[' ']' | '[' [ | ] ? ']'" @@ -137,24 +134,6 @@ "blur()": { "syntax": "blur( )" }, - "bool-and": { - "syntax": "and " - }, - "bool-in-parens": { - "syntax": "( ) | | " - }, - "bool-not": { - "syntax": "not " - }, - "bool-or": { - "syntax": "or " - }, - "boolean": { - "syntax": " | [ * | * ]" - }, - "boolean-without-or": { - "syntax": " | *" - }, "border-style": { "syntax": "none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset" }, @@ -327,7 +306,7 @@ "syntax": "" }, "container-progress()": { - "syntax": "container-progress( [ of ]? from to )" + "syntax": "container-progress( [ of ]? , , )" }, "container-query": { "syntax": "not | [ [ and ]* | [ or ]* ]" @@ -437,9 +416,6 @@ "device-cmyk()": { "syntax": " | " }, - "dimension-unit": { - "syntax": "'%' | em | ex | cap | ch | ic | rem | lh | rlh | vw | vh | vi | vb | vmin | vmax | cm | mm | q | in | pc | pt | px | deg | grad | rad | turn | s | ms | hz | khz | fr" - }, "discretionary-lig-values": { "syntax": "[ discretionary-ligatures | no-discretionary-ligatures ]" }, @@ -468,7 +444,7 @@ "syntax": "drop-shadow( {2,3} ? )" }, "dynamic-range-limit-mix()": { - "syntax": "dynamic-range-limit-mix( [ && ? ]#{2} )" + "syntax": "dynamic-range-limit-mix( [ && ]+ )" }, "easing-function": { "syntax": " | | " @@ -701,6 +677,12 @@ "hypot()": { "syntax": "hypot( # )" }, + "if-test": { + "syntax": "supports( [ | : ] ) | media( ) | style( )" + }, + "if()": { + "syntax": "if( [ : ? ; ]* : ? ';'? )" + }, "image": { "syntax": " | | | | | " }, @@ -731,6 +713,9 @@ "inflexible-breadth": { "syntax": " | min-content | max-content | auto" }, + "inherit()": { + "syntax": "inherit( , ? )" + }, "inset-area": { "syntax": "[ [ left | center | right | span-left | span-right | x-start | x-end | span-x-start | span-x-end | x-self-start | x-self-end | span-x-self-start | span-x-self-end | span-all ] || [ top | center | bottom | span-top | span-bottom | y-start | y-end | span-y-start | span-y-end | y-self-start | y-self-end | span-y-self-start | span-y-self-end | span-all ] | [ block-start | center | block-end | span-block-start | span-block-end | span-all ] || [ inline-start | center | inline-end | span-inline-start | span-inline-end | span-all ] | [ self-block-start | self-block-end | span-self-block-start | span-self-block-end | span-all ] || [ self-inline-start | self-inline-end | span-self-inline-start | span-self-inline-end | span-all ] | [ start | center | end | span-start | span-end | span-all ]{1,2} | [ self-start | center | self-end | span-self-start | span-self-end | span-all ]{1,2} ]" }, @@ -909,7 +894,7 @@ "syntax": "or " }, "media-progress()": { - "syntax": "media-progress( from to )" + "syntax": "media-progress( , , )" }, "media-query": { "syntax": " | [ not | only ]? [ and ]?" @@ -957,7 +942,7 @@ "syntax": "minmax( [ | min-content | max-content | auto ] , [ | | min-content | max-content | auto ] )" }, "mix()": { - "syntax": "mix( , , ) | mix( && of <'animation-name'> )" + "syntax": "mix( , , ) | mix( && of )" }, "mod()": { "syntax": "mod( , )" @@ -1137,7 +1122,7 @@ "syntax": "[ | | <'animation-timeline'> ] && [ by ]?" }, "progress()": { - "syntax": "progress( from to )" + "syntax": "progress( , , )" }, "pseudo-class-selector": { "syntax": "':' | ':' ')'" @@ -1241,9 +1226,6 @@ "repeat-style": { "syntax": "repeat-x | repeat-y | {1,2}" }, - "repeat()": { - "syntax": "auto-fill | auto-fit" - }, "repeating-conic-gradient()": { "syntax": "repeating-conic-gradient( [ ] )" }, @@ -1530,7 +1512,7 @@ "syntax": "symbols( ? [ | ]+ )" }, "syntax": { - "syntax": "'*' | [ ]+" + "syntax": "'*' | [ ]* | " }, "syntax-combinator": { "syntax": "'|'" @@ -1544,6 +1526,9 @@ "syntax-single-component": { "syntax": "'<' '>' | " }, + "syntax-string": { + "syntax": "" + }, "syntax-type-name": { "syntax": "angle | color | custom-ident | image | integer | length | length-percentage | number | percentage | resolution | string | time | url | transform-function" }, diff --git a/packages/css-syntax-patches-for-csstree/scripts/generate-webref-sets.mjs b/packages/css-syntax-patches-for-csstree/scripts/generate-webref-sets.mjs index e1674a67c..c25c7425c 100644 --- a/packages/css-syntax-patches-for-csstree/scripts/generate-webref-sets.mjs +++ b/packages/css-syntax-patches-for-csstree/scripts/generate-webref-sets.mjs @@ -552,8 +552,6 @@ export async function generate_webref_sets() { // Set missing definitions { - values['dimension-unit'] = JSON.parse(await fs.readFile(path.join('raw-data', 'units.json'))).join(' | '); - values['intrinsic-size-keyword'] = JSON.parse(await fs.readFile(path.join('raw-data', 'intrinsic-size-keywords.json'))).join(' | '); // https://github.com/w3c/csswg-drafts/issues/11127 @@ -701,7 +699,7 @@ export async function generate_webref_sets() { } } - if (!value.value && value.values?.length > 0) { + if (value.type === 'type' && !value.value && value.values?.length > 0) { assign_new_definition( spec_name, values,