css parser: vars in @supports(--var: foo)

This commit is contained in:
tophf 2020-05-29 18:39:37 +03:00
parent 379c825408
commit 8aac1c315a

View File

@ -4017,7 +4017,7 @@ self.parserlib = (() => {
const stream = this._tokenStream;
if (stream.match(Tokens.LPAREN)) {
this._ws();
if (stream.match(Tokens.IDENT)) {
if (stream.match([Tokens.IDENT, Tokens.CUSTOM_PROP])) {
// look ahead for not keyword,
// if not given, continue with declaration condition.
const ident = lower(stream._token.value);