Files
tegwick c5a5b26797
Some checks failed
Test Suite / code-quality (push) Has been cancelled
Test Suite / unit-tests (3.11) (push) Has been cancelled
Test Suite / unit-tests (3.12) (push) Has been cancelled
Test Suite / security-scan (push) Has been cancelled
Test Suite / integration-tests (push) Has been cancelled
Test Suite / e2e-tests (push) Has been cancelled
Test Suite / performance-tests (push) Has been cancelled
Test Suite / test-summary (push) Has been cancelled
refactor: Still trying to reorganize edit mode to be more robust
2025-11-04 21:59:22 +01:00
..

CSS Syntax Patches For CSSTree for CSS

npm version Build Status

Patch csstree syntax definitions with the latest data from CSS specifications.

Usage

npm install @csstools/css-syntax-patches-for-csstree
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

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.