Socket
Book a DemoInstallSign in
Socket

@csstools/css-syntax-patches-for-csstree

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@csstools/css-syntax-patches-for-csstree

CSS syntax patches for CSS tree

latest
Source
npmnpm
Version
1.0.23
Version published
Maintainers
3
Created
Source

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.

Keywords

css

FAQs

Package last updated on 07 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts