From 76cb9c2a39d477a64824a985ade40507e3bbade1 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Fri, 13 Feb 2026 21:34:48 -0800 Subject: feat(vanilla): add testing infrastructure and tests (NK-wjnczv) --- .../css-syntax-patches-for-csstree/CHANGELOG.md | 9 + .../css-syntax-patches-for-csstree/LICENSE.md | 18 + .../css-syntax-patches-for-csstree/README.md | 43 + .../css-syntax-patches-for-csstree/dist/index.d.ts | 5 + .../css-syntax-patches-for-csstree/dist/index.json | 913 +++++++++++++++++++++ .../css-syntax-patches-for-csstree/package.json | 48 ++ 6 files changed, 1036 insertions(+) create mode 100644 vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/CHANGELOG.md create mode 100644 vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/LICENSE.md create mode 100644 vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/README.md create mode 100644 vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/dist/index.d.ts create mode 100644 vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/dist/index.json create mode 100644 vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/package.json (limited to 'vanilla/node_modules/@csstools/css-syntax-patches-for-csstree') diff --git a/vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/CHANGELOG.md b/vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/CHANGELOG.md new file mode 100644 index 0000000..08f339f --- /dev/null +++ b/vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/CHANGELOG.md @@ -0,0 +1,9 @@ +# Changes to CSS Syntax Patches For CSSTree + +### 1.0.27 + +_February 9, 2026_ + +- Update `@webref/css` to [`v8.2.3`](https://github.com/w3c/webref/releases/tag/%40webref%2Fcss%408.2.3) + +[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/packages/css-syntax-patches-for-csstree/CHANGELOG.md) diff --git a/vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/LICENSE.md b/vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/LICENSE.md new file mode 100644 index 0000000..e8ae93b --- /dev/null +++ b/vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/LICENSE.md @@ -0,0 +1,18 @@ +MIT No Attribution (MIT-0) + +Copyright © CSSTools Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the “Software”), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/README.md b/vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/README.md new file mode 100644 index 0000000..00e214f --- /dev/null +++ b/vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/README.md @@ -0,0 +1,43 @@ +# CSS Syntax Patches For CSSTree for CSS + +[npm version][npm-url] +[Build Status][cli-url] + +Patch [csstree](https://github.com/csstree/csstree) syntax definitions with the latest data from CSS specifications. + +## Usage + +```bash +npm install @csstools/css-syntax-patches-for-csstree +``` + +```js +import { fork } from 'css-tree'; +import syntax_patches from '@csstools/css-syntax-patches-for-csstree' with { type: 'json' }; + +const forkedLexer = fork({ + atrules: syntax_patches.next.atrules, + properties: syntax_patches.next.properties, + types: syntax_patches.next.types, +}).lexer; +``` + +## `next` + +```js +import syntax_patches from '@csstools/css-syntax-patches-for-csstree' with { type: 'json' }; + +console.log(syntax_patches.next); +// ^^^^ +``` + +CSS specifications are often still in flux and various parts might change or disappear altogether. +Specifications also contains parts that haven't been implemented yet in a browser. +Only CSS that is widely adopted can be expected to be stable. + +The `next` grouping contains a combination of what is currently valid in browsers and the progress in various specifications. + +_In the future more groupings might be added._ + +[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test +[npm-url]: https://www.npmjs.com/package/@csstools/css-syntax-patches-for-csstree diff --git a/vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/dist/index.d.ts b/vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/dist/index.d.ts new file mode 100644 index 0000000..05d942a --- /dev/null +++ b/vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/dist/index.d.ts @@ -0,0 +1,5 @@ +export const next: { + atrules: Record }>, + properties: Record, + types: Record, +} diff --git a/vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/dist/index.json b/vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/dist/index.json new file mode 100644 index 0000000..e93d3b3 --- /dev/null +++ b/vanilla/node_modules/@csstools/css-syntax-patches-for-csstree/dist/index.json @@ -0,0 +1,913 @@ +{ + "next": { + "atrules": { + "color-profile": { + "descriptors": { + "components": "#", + "rendering-intent": "relative-colorimetric | absolute-colorimetric | perceptual | saturation", + "src": "" + } + }, + "counter-style": { + "descriptors": { + "additive-symbols": "[ && ]#", + "pad": " && " + } + }, + "font-face": { + "descriptors": { + "ascent-override": "[ normal | ]{1,2}", + "descent-override": "[ normal | ]{1,2}", + "font-language-override": "normal | ", + "font-named-instance": "auto | ", + "font-size": "auto | [ ]{1,2}", + "font-style": "auto | normal | italic | left | right | oblique [ {1,2} ]?", + "font-weight": "| auto", + "font-width": "auto | <'font-width'>{1,2}", + "line-gap-override": "[ normal | ]{1,2}", + "size-adjust": "", + "src": "", + "subscript-position-override": "[ normal | from-font | ]{1,2}", + "subscript-size-override": "[ normal | from-font | ]{1,2}", + "superscript-position-override": "[ normal | from-font | ]{1,2}", + "superscript-size-override": "[ normal | from-font | ]{1,2}", + "unicode-range": "#" + } + }, + "font-feature-values": { + "descriptors": { + "font-display": "auto | block | swap | fallback | optional" + } + }, + "font-palette-values": { + "descriptors": { + "override-colors": "[ ]#" + } + }, + "function": { + "descriptors": { + "result": "?" + } + }, + "page": { + "descriptors": { + "size": "{1,2} | auto | [ || [ portrait | landscape ] ]" + } + }, + "view-transition": { + "descriptors": { + "navigation": "auto | none", + "types": "none | +" + } + } + }, + "properties": { + "align-items": "normal | stretch | | [ ? ] | anchor-center", + "align-self": "auto | normal | stretch | | ? | anchor-center", + "alignment-baseline": "| text-bottom | text-top", + "all": " | revert-rule", + "animation-duration": "[ auto |