Please officially support the pseudo-class :state(<custom-ident>)! It is marked as Baseline 2024 and is supported by all major browsers. See https://developer.mozilla.org/en-US/docs/Web/CSS/:state
Currently, lightningcss spits out the following warning:
'state' is not recognized as a valid pseudo-class. Did you mean '::state' (pseudo-element) or is this a typo?