# What changed in lightningcss

> 34 changes in lightningcss 1 from its official release notes, upgrade guides and advisories: 12 new APIs and options. Each one cited. Sources checked 2026-10-17. HTML: https://unstale.sh/npm/lightningcss/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## lightningcss 1

### New APIs and options

- Adds support for the alpha() relative color function. (1.33.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.33.0)
- Adds support for the ::highlight pseudo-element. (1.33.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.33.0)
- Adds support for the @position-try at-rule. (1.33.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.33.0)
- Adds support for ::search-text and :current::search-text. (1.33.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.33.0)
- Adds support for the :target-before, :target-after, and :target-current pseudo-classes. (1.33.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.33.0)
- Visitors can receive an addDependency function so tools that call Lightning CSS can implement file watching or caching. (1.32.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.32.0)
- Adds support for the mix-blend-mode property. (1.32.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.32.0)
- Adds external to the return type of resolve. (1.32.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.33.0), [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.32.0)
- Adds support for name-only @container queries. (1.31.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.31.0)
- Adds support for the print-color-adjust property. (1.31.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.31.0)
- Adds support for scroll-state container queries in CSS. (1.31.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.31.0)
- Adds support for the :state() pseudo-class. (1.31.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.31.0)

### Performance

- Reduces min(), max(), and clamp() when their arguments are numbers. (1.31.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.31.0)

### Behavior and default changes

- Allows @property to be nested inside at-rules. (1.31.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.31.0)
- Supports <string> in the syntax descriptor for @property. (1.31.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.31.0)

### Fixes and other changes

- Collapses light-dark(x, x) to x. (1.33.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.33.0)
- Fixes minification of negative scientific notation dimensions. (1.33.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.33.0)
- Fixes #rrggbbaa support on older versions of Android. (1.33.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.33.0)
- Prints unknown at-rules in the same location. (1.33.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.33.0)
- Unknown color-scheme keywords are output as-is instead of being changed to normal. (1.32.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.32.0)
- Avoids inserting additional whitespace in env(--foo,). (1.32.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.32.0)
- Serialization of the rotate property is improved. (1.32.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.32.0)
- Converts percentages in the scale property or scale() to numbers. (1.32.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.32.0)
- Formatting keeps a single space between functions in transform values. (1.32.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.32.0)
- Avoids inserting additional whitespace in var(--foo,). (1.32.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.32.0)
- Fixes minification and handling for various background-position cases. (1.31.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.31.0)
- Updates browser compatibility data. (1.31.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.31.0)
- Adds quotes to font families containing multiple consecutive spaces. (1.31.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.31.0)
- Improves grid-template-areas handling and the grid shorthand. (1.31.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.31.0)
- Ensures interleaved nested declarations have a semicolon when needed. (1.31.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.31.0)
- Ensures compiled range media queries are correctly parenthesised. (1.31.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.31.0)
- Fixes casing for camel-cased SVG values. (1.31.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.31.0)
- Preserves whitespace in token lists. (1.31.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.31.0)
- Fixes whitespace handling in view transition pseudos. (1.31.0) — [release notes](https://github.com/parcel-bundler/lightningcss/releases/tag/v1.31.0)
