npm / lightningcss
lightningcss
What changed in lightningcss 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-17.
12 new APIs and options1 performance2 behavior and defaults19 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initlightningcss 134 changes
New APIs and options 12
Adds support for the alpha() relative color function.
Adds support for the ::highlight pseudo-element.
Adds support for the @position-try at-rule.
Adds support for ::search-text and :current::search-text.
Adds support for the :target-before, :target-after, and :target-current pseudo-classes.
Visitors can receive an addDependency function so tools that call Lightning CSS can implement file watching or caching.
Adds support for the mix-blend-mode property.
Adds external to the return type of resolve.
Adds support for name-only @container queries.
Adds support for the print-color-adjust property.
Adds support for scroll-state container queries in CSS.
Adds support for the :state() pseudo-class.
Performance 1
Reduces min(), max(), and clamp() when their arguments are numbers.
Behavior and default changes 2
Allows @property to be nested inside at-rules.
Supports <string> in the syntax descriptor for @property.
Fixes and other changes 19
Collapses light-dark(x, x) to x.
Fixes minification of negative scientific notation dimensions.
Fixes #rrggbbaa support on older versions of Android.
Prints unknown at-rules in the same location.
Unknown color-scheme keywords are output as-is instead of being changed to normal.
Avoids inserting additional whitespace in env(--foo,).
Serialization of the rotate property is improved.
Converts percentages in the scale property or scale() to numbers.
Formatting keeps a single space between functions in transform values.
Avoids inserting additional whitespace in var(--foo,).
Fixes minification and handling for various background-position cases.
Updates browser compatibility data.
Adds quotes to font families containing multiple consecutive spaces.
Improves grid-template-areas handling and the grid shorthand.
Ensures interleaved nested declarations have a semicolon when needed.
Ensures compiled range media queries are correctly parenthesised.
Fixes casing for camel-cased SVG values.
Preserves whitespace in token lists.
Fixes whitespace handling in view transition pseudos.