mattbasta / crass

A CSS minifier and utility library for JavaScript
http://mattbasta.com/crass
MIT License
102 stars 6 forks source link

Question: parseError selector `where(:root)` #90

Open telamon opened 2 years ago

telamon commented 2 years ago

Hello, I'm getting this lexical error when running a dependency through crass

Optimizing pub/build/bundle.css failed:  Parse error on line 4:
...lign:inherit}:where(:root){-webkit-tap-h
-----------------------^
Expecting 'STRING', 'IDENT', 'S', '(', 'TO', '+', 'HEX_SHORT', 'HEX_LONG', 'HEX_SHORT_ALPHA', 'HEX_LONG_ALPHA', '[', 'FUNCTION_IDENT', '-', 'UNICODE_RANGE', 'IE_EXPRESSION', 'URL_FULL', 'CALC', 'ATTR', 'INTEGER', 'SCINOT', 'FLOAT', got ':'

I don't know if the error is caused by crass or pico-css; help?

mattbasta commented 2 years ago

Hi Tony. Crass doesn't have support for the where or is pseudoselectors yet.

telamon commented 2 years ago

Okay, good to know :+1: