diff --git a/package-lock.json b/package-lock.json index 1bb546559..73267aa60 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3776,9 +3776,9 @@ } }, "node_modules/@webref/css": { - "version": "8.6.0", - "resolved": "https://registry.npmjs.org/@webref/css/-/css-8.6.0.tgz", - "integrity": "sha512-8eyHktfLcI6OjnLsO/SVnWFlgcfyhnVX1GLDFVQ0YrNOsXsXHvOctRbkCW9Nl9Q8o59se/o5fWSw1dV0l0+4lQ==", + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/@webref/css/-/css-8.7.0.tgz", + "integrity": "sha512-4wWoH0kgFgEMG1ZDD/rPv8UpYJ326YcN8hTcU7T6i5u6AqnQsEmGxMHCKeABQXY8WjiXdGcG8NA8PQAsv3yVFA==", "dev": true, "license": "MIT", "peerDependencies": { @@ -8253,7 +8253,7 @@ ], "license": "MIT-0", "devDependencies": { - "@webref/css": "^8.6.0", + "@webref/css": "^8.7.0", "css-tree": "^3.2.1", "postcss": "^8.5" }, @@ -8570,7 +8570,7 @@ "@csstools/pack-test": "*", "@csstools/postcss-bundler": "*", "@csstools/postcss-tape": "*", - "@webref/css": "^8.6.0" + "@webref/css": "^8.7.0" }, "engines": { "node": ">=20.19.0" @@ -10440,7 +10440,7 @@ }, "devDependencies": { "@csstools/postcss-tape": "*", - "@webref/css": "^8.6.0" + "@webref/css": "^8.7.0" }, "engines": { "node": ">=20.19.0" diff --git a/packages/css-syntax-patches-for-csstree/CHANGELOG.md b/packages/css-syntax-patches-for-csstree/CHANGELOG.md index 35332c6f6..2bf619124 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 [`v8.7.0`](https://github.com/w3c/webref/releases/tag/%40webref%2Fcss%408.7.0) + ### 1.1.6 _June 28, 2026_ diff --git a/packages/css-syntax-patches-for-csstree/dist/index.json b/packages/css-syntax-patches-for-csstree/dist/index.json index aa2965133..a8a0a2f2c 100644 --- a/packages/css-syntax-patches-for-csstree/dist/index.json +++ b/packages/css-syntax-patches-for-csstree/dist/index.json @@ -59,6 +59,11 @@ "position-anchor": "<'position-anchor'>", "position-area": "<'position-area'>" } + }, + "view-transition": { + "descriptors": { + "types": "none | +" + } } }, "properties": { @@ -471,7 +476,6 @@ "dashed-ident": "", "unicode-range-token": "", "a-n-plus-b": "odd | even | | | '+'? n | -n | | '+'? | | | '+'? n | -n | | '+'? n- | -n- | [ '+' | '-' ] | '+'? n [ '+' | '-' ] | -n [ '+' | '-' ] ", - "active-navigation-condition": "? [ | link-href ]?", "alpha()": "alpha( [ from ] [ / [ | alpha | none ] ]? )", "anchored-feature": "fallback : <'position-try-fallbacks'>", "anchored-in-parens": "( ) | ( ) | ", @@ -571,7 +575,7 @@ "generic-font-family": " | | | <-non-standard-generic-family>", "generic-font-incomplete": "ui-serif | ui-sans-serif | ui-monospace | ui-rounded", "generic-font-script-specific": "generic( fangsong ) | generic( kai ) | generic( khmer-mul ) | generic( nastaliq )", - "generic-voice": "? ?", + "generic-voice": "? ?", "gradient": "[ | | | | | | <-legacy-gradient> ]", "grid-line": "auto | | [ [ | ] && ? ] | [ span && [ || ] ]", "hdr-color()": "color-hdr( [ && ? ]#{2} )", @@ -651,8 +655,7 @@ "navigation-condition": "not | [ and ]* | [ or ]*", "navigation-in-parens": "( ) | ( ) | ", "navigation-location-between-test": "between : and ", - "navigation-location-keyword": "at | with | from | to", - "navigation-location-test": " : ", + "navigation-location-test": " : ", "navigation-phase-keyword": "loading | ready | committed", "navigation-phase-test": "phase : ", "navigation-relation": "at | with | from | to", @@ -711,7 +714,7 @@ "round()": "round( ? , , ? )", "rounding-strategy": "| line-width", "route-descriptor": " | | ", - "route-location": " | | ", + "route-location": " | [ | ]", "route-name": "", "route-rule": "@route { }", "running()": "running( )", @@ -785,6 +788,7 @@ "url()": "url( * ) | ", "var-args": "var( , ? )", "vertical-line-command": "vline [ to [ | top | center | bottom | y-start | y-end ] | by ]", + "view-transition-type": "", "voice-family-name": " | +", "wcag2": "wcag2 | wcag2( [ | [ aa | aaa ] && large? ] )", "whole-value": "", diff --git a/packages/css-syntax-patches-for-csstree/package.json b/packages/css-syntax-patches-for-csstree/package.json index 0d71989d1..f43930fe5 100644 --- a/packages/css-syntax-patches-for-csstree/package.json +++ b/packages/css-syntax-patches-for-csstree/package.json @@ -41,7 +41,7 @@ } }, "devDependencies": { - "@webref/css": "^8.6.0", + "@webref/css": "^8.7.0", "css-tree": "^3.2.1", "postcss": "^8.5" }, diff --git a/packages/css-syntax-patches-for-csstree/patches/webref-over-csstree-atrules.json b/packages/css-syntax-patches-for-csstree/patches/webref-over-csstree-atrules.json index 9d888685d..2acfa0389 100644 --- a/packages/css-syntax-patches-for-csstree/patches/webref-over-csstree-atrules.json +++ b/packages/css-syntax-patches-for-csstree/patches/webref-over-csstree-atrules.json @@ -412,5 +412,20 @@ } } } + }, + "view-transition": { + "descriptors": { + "types": { + "type": "modified", + "comment": "", + "syntax-b": "none | +", + "syntax-a": "none | +", + "syntax-m": "none | +", + "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 bfcfd5d8f..8fbcd2176 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 @@ -26,17 +26,6 @@ "failing": [] } }, - "active-navigation-condition": { - "type": "added", - "comment": "", - "syntax-b": "", - "syntax-a": "? [ | link-href ]?", - "syntax-m": "? [ | link-href ]?", - "tests": { - "passing": [], - "failing": [] - } - }, "alpha()": { "type": "added", "comment": "", @@ -1421,8 +1410,8 @@ "type": "modified", "comment": "", "syntax-b": "[ ? ? ]", - "syntax-a": "? ?", - "syntax-m": "? ?", + "syntax-a": "? ?", + "syntax-m": "? ?", "tests": { "passing": [], "failing": [] @@ -2823,23 +2812,12 @@ "failing": [] } }, - "navigation-location-keyword": { - "type": "added", - "comment": "", - "syntax-b": "", - "syntax-a": "at | with | from | to", - "syntax-m": "at | with | from | to", - "tests": { - "passing": [], - "failing": [] - } - }, "navigation-location-test": { "type": "added", "comment": "", "syntax-b": "", - "syntax-a": " : ", - "syntax-m": " : ", + "syntax-a": " : ", + "syntax-m": " : ", "tests": { "passing": [], "failing": [] @@ -3624,8 +3602,8 @@ "type": "added", "comment": "", "syntax-b": "", - "syntax-a": " | | ", - "syntax-m": " | | ", + "syntax-a": " | [ | ]", + "syntax-m": " | [ | ]", "tests": { "passing": [], "failing": [] @@ -4556,6 +4534,17 @@ "failing": [] } }, + "view-transition-type": { + "type": "added", + "comment": "", + "syntax-b": "", + "syntax-a": "", + "syntax-m": "", + "tests": { + "passing": [], + "failing": [] + } + }, "voice-family-name": { "type": "added", "comment": "", diff --git a/packages/css-syntax-patches-for-csstree/raw-data/webref-atrules.json b/packages/css-syntax-patches-for-csstree/raw-data/webref-atrules.json index b16e4a755..8d7b262c2 100644 --- a/packages/css-syntax-patches-for-csstree/raw-data/webref-atrules.json +++ b/packages/css-syntax-patches-for-csstree/raw-data/webref-atrules.json @@ -318,7 +318,7 @@ "syntax": "auto | none" }, "types": { - "syntax": "none | +" + "syntax": "none | +" } } } diff --git a/packages/css-syntax-patches-for-csstree/raw-data/webref-over-csstree-atrules.json b/packages/css-syntax-patches-for-csstree/raw-data/webref-over-csstree-atrules.json index dd5ca8048..c7c802eb4 100644 --- a/packages/css-syntax-patches-for-csstree/raw-data/webref-over-csstree-atrules.json +++ b/packages/css-syntax-patches-for-csstree/raw-data/webref-over-csstree-atrules.json @@ -212,5 +212,15 @@ "comment": "" } } + }, + "view-transition": { + "descriptors": { + "types": { + "type": "modified", + "syntax-b": "none | +", + "syntax-a": "none | +", + "comment": "" + } + } } } 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 4348f3c30..84d8afea9 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 @@ -11,12 +11,6 @@ "syntax-a": "[ xx-small | x-small | small | medium | large | x-large | xx-large | xxx-large ]", "comment": "" }, - "active-navigation-condition": { - "type": "added", - "syntax-b": "", - "syntax-a": "? [ | link-href ]?", - "comment": "" - }, "alpha()": { "type": "added", "syntax-b": "", @@ -644,7 +638,7 @@ "generic-voice": { "type": "modified", "syntax-b": "[ ? ? ]", - "syntax-a": "? ?", + "syntax-a": "? ?", "comment": "" }, "gradient": { @@ -1133,16 +1127,10 @@ "syntax-a": "between : and ", "comment": "" }, - "navigation-location-keyword": { - "type": "added", - "syntax-b": "", - "syntax-a": "at | with | from | to", - "comment": "" - }, "navigation-location-test": { "type": "added", "syntax-b": "", - "syntax-a": " : ", + "syntax-a": " : ", "comment": "" }, "navigation-phase-keyword": { @@ -1502,7 +1490,7 @@ "route-location": { "type": "added", "syntax-b": "", - "syntax-a": " | | ", + "syntax-a": " | [ | ]", "comment": "" }, "route-name": { @@ -1961,6 +1949,12 @@ "syntax-a": "vline [ to [ | top | center | bottom | y-start | y-end ] | by ]", "comment": "" }, + "view-transition-type": { + "type": "added", + "syntax-b": "", + "syntax-a": "", + "comment": "" + }, "voice-family-name": { "type": "added", "syntax-b": "", 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 aeac536d6..0bc6f1acc 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 @@ -11,9 +11,6 @@ "acos()": { "syntax": "acos( )" }, - "active-navigation-condition": { - "syntax": "? [ | link-href ]?" - }, "age": { "syntax": "child | young | old" }, @@ -711,7 +708,7 @@ "syntax": "generic( kai ) | generic( fangsong ) | generic( nastaliq )" }, "generic-voice": { - "syntax": "? ?" + "syntax": "? ?" }, "geometry-box": { "syntax": " | fill-box | stroke-box | view-box" @@ -1145,11 +1142,8 @@ "navigation-location-between-test": { "syntax": "between : and " }, - "navigation-location-keyword": { - "syntax": "at | with | from | to" - }, "navigation-location-test": { - "syntax": " : " + "syntax": " : " }, "navigation-phase-keyword": { "syntax": "loading | ready | committed" @@ -1512,7 +1506,7 @@ "syntax": " | | " }, "route-location": { - "syntax": " | | " + "syntax": " | [ | ]" }, "route-name": { "syntax": "" @@ -1973,6 +1967,9 @@ "vertical-line-command": { "syntax": "vline [ to [ | top | center | bottom | y-start | y-end ] | by ]" }, + "view-transition-type": { + "syntax": "" + }, "view()": { "syntax": "view( [ || <'view-timeline-inset'> ]? )" }, 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 b80ce64ea..79a5d8e5b 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 @@ -75,6 +75,9 @@ export async function generate_webref_sets() { // https://github.com/w3c/csswg-drafts/issues/13311 types['voice-family-name'] = ' | +'; + // https://github.com/w3c/webref/issues/1986 + types['view-transition-type'] = ''; + assign_new_atrule_descriptor_definition( atrules, trim_at('position-try'), diff --git a/plugin-packs/postcss-preset-env/package.json b/plugin-packs/postcss-preset-env/package.json index c607f1434..966b60879 100644 --- a/plugin-packs/postcss-preset-env/package.json +++ b/plugin-packs/postcss-preset-env/package.json @@ -128,7 +128,7 @@ "@csstools/pack-test": "*", "@csstools/postcss-bundler": "*", "@csstools/postcss-tape": "*", - "@webref/css": "^8.6.0" + "@webref/css": "^8.7.0" }, "scripts": { "prebuild": "node ./scripts/generate-plugins-data.mjs && eslint --fix ./src/plugins/*.mjs", diff --git a/plugins/postcss-progressive-custom-properties/package.json b/plugins/postcss-progressive-custom-properties/package.json index d7867c0ca..150e92379 100644 --- a/plugins/postcss-progressive-custom-properties/package.json +++ b/plugins/postcss-progressive-custom-properties/package.json @@ -38,7 +38,7 @@ }, "devDependencies": { "@csstools/postcss-tape": "*", - "@webref/css": "^8.6.0" + "@webref/css": "^8.7.0" }, "scripts": { "build": "node ./scripts/matchers.mjs && node ./scripts/shorthands.mjs && eslint --fix ./src/matchers.ts ./src/shorthands.ts && rollup -c ../../rollup/default.mjs",