From ae5f0691b02b6375d70fc7763801d0377b0e507b Mon Sep 17 00:00:00 2001 From: Alan Eyzaguirre <126976983+aceeyz@users.noreply.github.com> Date: Fri, 25 Sep 2026 15:16:58 -0400 Subject: [PATCH] Enable lightningcss scroll navigation drafts so :target-current parses --- CHANGELOG.md | 1 + packages/@tailwindcss-node/src/optimize.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 479fca86f2d5..d9a289459ed6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Don't warn about `:target-current`, `:target-before` and `:target-after` pseudo-classes when optimizing CSS - Ensure watch mode detects changes to symlinked `@source` files whose real paths aren't otherwise scanned ([#20356](https://github.com/tailwindlabs/tailwindcss/pull/20356)) - Ensure custom variants using `@scope` wrap the generated utilities instead of nesting inside them ([#20369](https://github.com/tailwindlabs/tailwindcss/pull/20369)) - Fix flattening of `@scope` at-rules ([#20369](https://github.com/tailwindlabs/tailwindcss/pull/20369)) diff --git a/packages/@tailwindcss-node/src/optimize.ts b/packages/@tailwindcss-node/src/optimize.ts index 2f0d39589697..88c82b232c0f 100644 --- a/packages/@tailwindcss-node/src/optimize.ts +++ b/packages/@tailwindcss-node/src/optimize.ts @@ -39,6 +39,7 @@ export function optimize( inputSourceMap: map, drafts: { customMedia: true, + scrollNavigationControls: true, }, nonStandard: { deepSelectorCombinator: true,