tailwindcss/packages
Robin Malfait 73f34e49c6
Constrain group-* and peer-* targets to reduce style invalidation
Generate `:is(<group> &)` instead of `&:is(<group> *)` (and the `~`
equivalent for `peer-*`). The target now sits in the subject position, so
browsers can limit style invalidation to the elements that carry the utility
instead of every descendant or following sibling of the group/peer.

Matching behavior and specificity are unchanged. The outer `:is(…)` keeps
compound variants such as `has-group-*` behaving the same.

The one accepted difference: with a default `@namespace`, compound variants
such as `group-group-*` no longer restrict the target to that namespace.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 15:47:38 +02:00
..
@tailwindcss-browser Bump dependencies (#20381) 2026-08-04 13:55:03 +02:00
@tailwindcss-cli fix: correct two comment typos (#20507) 2026-09-25 11:28:27 +00:00
@tailwindcss-node Don't warn about Angular's ::ng-deep and :host-context() when optimizing CSS (#20434) 2026-08-31 10:14:54 +00:00
@tailwindcss-postcss Bump dependencies (#20381) 2026-08-04 13:55:03 +02:00
@tailwindcss-standalone Bump dependencies (#20381) 2026-08-04 13:55:03 +02:00
@tailwindcss-turbopack Add Turbopack loader integration coverage 2026-07-31 15:13:38 +02:00
@tailwindcss-upgrade Bump dependencies (#20381) 2026-08-04 13:55:03 +02:00
@tailwindcss-vite Do not force full page reloads when using @tailwindcss/vite (#20414) 2026-08-13 17:00:08 +02:00
@tailwindcss-webpack 4.3.3 (#20334) 2026-07-16 07:21:50 -04:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Constrain group-* and peer-* targets to reduce style invalidation 2026-09-25 15:47:38 +02:00
tsconfig.base.json Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00