fix: don't handle args of @warn and @error directives as media query list (#3769)

This commit is contained in:
Evilebot Tnawi authored and suchipi committed 2018-01-19 17:00:06 -07:00
1 parent dbb494ed30
commit 105914e45c
3 files changed
+51 -1

No files matched your search

+8 -1
View File
@@ -205,7 +205,14 @@ function parseNestedCSS(node) {
}
}
if (node.type === "css-atrule" && typeof node.params === "string") {
node.params = parseMediaQuery(node.params);
if (node.name === "warn" || node.name === "error") {
node.params = {
type: "media-unknown",
value: node.params
};
} else {
node.params = parseMediaQuery(node.params);
}
}
}
return node;