Enable lightningcss scroll navigation drafts so :target-current parses

This commit is contained in:
Alan Eyzaguirre 2026-09-25 15:16:58 -04:00
parent 9798a8ab5b
commit ae5f0691b0
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

View file

@ -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))

View file

@ -39,6 +39,7 @@ export function optimize(
inputSourceMap: map,
drafts: {
customMedia: true,
scrollNavigationControls: true,
},
nonStandard: {
deepSelectorCombinator: true,