NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #914 most downloaded on npm
A modern CSS parser and stringifier with TypeScript support
Latest stable
5.0.0
Last release 16 days ago
06 Nov 2026
Ships fairly regularly
a new release about every 4 months
Nearly every release is documented
notes for 15 of 16 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
23 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
Add parse option stripCommentsInValues, enabled by default for V4 compatibility, with an opt-out that preserves leading, embedded, and trailing value
parse option stripCommentsInValues, enabled by default for V4 compatibility, with an opt-out that preserves leading, embedded, and trailing value comments.ParseOptions TypeScript interface.postcss and postcss-safe-parser, keeping the css-tools API and AST format, with default-output compatibility verified for the tested corpus.@layer blocks.@keyframes blocks that contain whitespace or comments without spurious missing-brace errors.} followed by ; without spurious missing-brace errors.url( in selectors and values.; or } to the end of the input or to a block in the same parent, such as @media y{@media x}} and @media x}b{}.@page statements, malformed import-like statements such as @import;; and @import{}, nameless keyframes, and unusual keyframe selectors.b}@import x}{}@import x}{}, and for block at-rules after a @layer statement ending in }, as in @layer x}@media y}.@property x{}, as generic at-rules, matching V4.@}) at-rules, repeated or nested failed @page blocks, long at-rule preludes, deeply nested blocks containing stray semicolons, long runs of comments or unclosed comments, many properties or escaped semicolons in a nested @font-face or @page, declarations missing their semicolons, and many recovered declarations or errors.} or many recovery errors.nanoid and source-map-js dependencies.Core PostCSS takes superlinear time on at-rule headers with many leading comments
and on many unclosed url( tokens. Separately, upstream postcss-safe-parser
recovery of long sequences without declaration semicolons can exhaust the stack
or, from about 600 KB with Node's default limits, the heap, which aborts the
process. These affect strict and silent parsing, are accepted for the final V5
release, and will not be fixed in css-tools. To restore V4's recovery, silent
mode can parse unclosed-url( input up to eight more times, which multiplies its
cost. Some malformed CSS still parses differently from V4. For example, after
eight re-parses silent mode keeps PostCSS's reading of any further malformed
input, and a nested block at-rule without a body keeps PostCSS's structure when
V4 reads its prelude past the parent's } into a later block, as in
@media y{@media x}b{}}. See
known issues in V5 for examples and mitigation.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add support for CSS Nesting — rules nested inside other rules (#621 by @jogibear9988)
@container container queries with nested rule body@top-left, @bottom-right, @left-middle, etc.) inside @page@foo { ... } and @foo ...; rules are preserved as CssGenericAtRuleAST instead of being dropped@counter-style, @font-feature-values, @scope, @view-transition, @position-tryCssGenericAtRuleAST, CssPageMarginBoxAST, CssPositionTryAST, CssScopeAST, CssViewTransitionAST, CssCounterStyleAST, CssFontFeatureValuesAST:is(), :has(), :not()@page to correctly accept margin-box at-rule children@rollup/plugin-terser 1.0.0Switch from yarn to npm for package management
Fix polynomial regular expression vulnerability on uncontrolled data
Fix regular expression for parsing quoted values in parentheses
Nothing published for this version
Add support for CSS @starting-style at-rule
@starting-style at-rule (#319)Update package export configuration
Fix ReDoS vulnerability with crafted CSS strings - CVE-2023-48631
:is() and nested :nth-child() selectors (#211)Fix ReDoS vulnerability with crafted CSS strings - CVE-2023-26364
Update build toolchain and dependencies
Nothing published for this version
Nothing published for this version
Nothing published for this version
Add support for CSS @container at-rule
@container at-rule@layer at-ruleNothing published for this version
Add support for ES Modules (ESM)
Fix @import parsing when URL contains semicolons
@import parsing when URL contains semicolons (#71)Fix globalThis configuration for webpack to enable UMD module usage in Node.js environments
globalThis configuration for webpack to enable UMD module usage in Node.js environmentsFork from original css library to Adobe's @adobe/css-tools package
@adobe/css-tools packageNothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.