bad minification for pseudo-elements
.language-diff :where(.inserted::before) {
content: '+';
}
is minified into
language-diff :where(){content:"+"}
Pseudo elements are not allowed inside :where() so this code is invalid. If you ran it in the browser the selector would also not apply.
Ahh, makes sense, sorry.
This should probably be a warning instead of getting silently removed on minification?
We've noticed the same behavior.
In such cases, I think it should issue a warning at the least when code is removed or modified and becomes syntactically invalid. Or remain the problematic code as it is instead of silently remove it.
It's less that it's being removed and more that it doesn't parse. CSS error recovery is very lenient, and it is ignored just like a browser would. Wiring through the logger to the selector parser might be possible but would take some work.