2 people reported

All time, since Sep 1.

CSS bundler warns on valid pseudo-elements and at-rules

“warn: Invalid selector. Unsupported pseudo-class or pseudo-element 'state'”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/bun/issues/5397/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

CSS bundler warns on valid pseudo-elements and at-rules. bun build on CSS flags spec-defined selectors like ::highlight() and ::picker() that lightningcss parses quietly; output stays correct.

Is this your bug?

File my report
Where
CSS bundler
Error text
warn: Invalid selector. Unsupported pseudo-class or pseudo-element 'state'
Versions
1.4.0 to 1.4.3
Platforms
Linux, macOS
How bad
Cosmetic: looks wrong, still works.

Original reports2, newest first

  1. css: :state(), ::highlight(), ::target-text, @position-try and four more constructs that lightningcss parses still warn as unsupported#42909
  2. css: the pseudo-element table trails lightningcss, so ::details-content, ::picker(), ::checkmark and the carousel selectors warn as invalid#41120

Do you work on Bun?

Claim its RAP Sheet to see what your users report and answer them in one place.