We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edb599a commit ab54dbdCopy full SHA for ab54dbd
lib/nodes/Func.js
@@ -96,7 +96,7 @@ class Func extends Container {
96
parser.back(rightTokens);
97
98
const { lastNode } = parser;
99
- lastNode.isColor = colorFunctions.includes(lastNode.name);
+ lastNode.isColor = colorFunctions.includes(lastNode.name.toLowerCase());
100
}
101
102
test/fixtures/func.js
@@ -23,6 +23,8 @@ module.exports = {
23
'url(http://123.example.com)',
24
'url(//123.example.com)',
25
'rgba( 29, 439 , 29 )',
26
+ 'RGBA( 29, 439 , 29 )',
27
+ 'RgBa( 29, 439 , 29 )',
28
'calc(-0.5 * var(foo))',
29
'calc(1px + -2vw - 4px)',
30
'calc(((768px - 100vw) / 2) - 15px)',
0 commit comments