tailwindcss/packages
Robin Malfait d03edefd19
Fix parsing bug in SelectorParser (#20090)
While working on another feature, I noticed that a selector such as
`.foo::before` was parsed as:

```ts
[
  {
    kind: 'compound',
    nodes: [
      { kind: 'selector', value: '.foo' },
      { kind: 'selector', value: ':' },
      { kind: 'selector', value: '::before' },
    ],
  },
]
```

Instead of:
```ts
[
  {
    kind: 'compound',
    nodes: [
      { kind: 'selector', value: '.foo' },
      { kind: 'selector', value: '::before' },
    ],
  },
]
```

So far this hasn't been a real issue in practice, but it is in a
follow-up PR that I'm working on. To keep things separated, I wanted to
fix this behavior in a dedicated PR instead.

## Test plan

1. Added a test case for this situation
2. Other tests still pass
2026-05-20 15:54:07 +02:00
..
@tailwindcss-browser 4.3.0 (#20023) 2026-05-08 22:03:59 +02:00
@tailwindcss-cli 4.3.0 (#20023) 2026-05-08 22:03:59 +02:00
@tailwindcss-node Update jiti 2.6.1 → 2.7.0 (minor) (#20044) 2026-05-13 12:02:13 +02:00
@tailwindcss-postcss 4.3.0 (#20023) 2026-05-08 22:03:59 +02:00
@tailwindcss-standalone 4.3.0 (#20023) 2026-05-08 22:03:59 +02:00
@tailwindcss-upgrade Update jiti 2.6.1 → 2.7.0 (minor) (#20044) 2026-05-13 12:02:13 +02:00
@tailwindcss-vite 4.3.0 (#20023) 2026-05-08 22:03:59 +02:00
@tailwindcss-webpack 4.3.0 (#20023) 2026-05-08 22:03:59 +02:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Fix parsing bug in SelectorParser (#20090) 2026-05-20 15:54:07 +02:00
tsconfig.base.json Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00