tailwindcss/packages
Robin Malfait 7ff413bad4
Ignore unknown at-rule warnings for @position-try (#20277)
This PR ignores Lightning CSS warnings for the unknow at-rule
`@position-try`.

This is a temporary fix/workaround until support for `@position-try`
lands in Lightning CSS:
https://github.com/parcel-bundler/lightningcss/pull/1238

Fixes: #20275

## Test plan

Ran a test based on the issue:

Before:
```shellsession
❯ tw -i x.css -o out.css --optimize
≈ tailwindcss v4.3.1

Found 1 warning while optimizing generated CSS:

│   position-try-fallbacks: --flip-above;
│ }
│ @position-try --flip-above {
┆              ^-- Unknown at rule: @position-try
┆
│   top: auto;
│   bottom: 0;

Done in 29ms
```

After:
```shellsession
❯ tw -i x.css -o out.css --optimize
≈ tailwindcss v4.3.1

Done in 14ms
```
2026-06-25 13:21:12 +02:00
..
@tailwindcss-browser 4.3.1 (#20226) 2026-06-12 19:33:35 +02:00
@tailwindcss-cli Ensure @tailwindcss/cli watches the input file (#20246) 2026-06-16 18:38:29 +02:00
@tailwindcss-node Ignore unknown at-rule warnings for @position-try (#20277) 2026-06-25 13:21:12 +02:00
@tailwindcss-postcss 4.3.1 (#20226) 2026-06-12 19:33:35 +02:00
@tailwindcss-standalone Update all pnpm dependencies (2026-06-15) (#20241) 2026-06-15 13:13:32 +00:00
@tailwindcss-upgrade Update all pnpm dependencies (2026-06-19) (#20262) 2026-06-19 13:11:16 +02:00
@tailwindcss-vite use .ts instead of .css 2026-06-25 13:03:10 +02:00
@tailwindcss-webpack 4.3.1 (#20226) 2026-06-12 19:33:35 +02:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Ensure --alpha(…) is seen as a color, and --spacing(…) is seen as a length (#20260) 2026-06-18 15:02:18 +02:00
tsconfig.base.json Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00