You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Couldn't find a similar issue in the issues page or Google:
The below appear to break node-sass, only if a variable (custom property) exists inside the Calc (capital C).
a{ top:Calc(var(--foo) *2) }
> node-sass --output-style compressed -o ./ foo.scss
{
"status": 1,
"file": "C:/projects/test/foo.scss",
"line": 1,
"column": 14,
"message": "Undefined operation: \"var(--foo) times 2\".",
"formatted": "Error: Undefined operation: \"var(--foo) times 2\".\n on line 1 of ui-range.scss\n>> a{ top: Calc(var(--foo) * 2) }\n -------------^\n"
}
I would expect node-sass to ignore casing of Calc or any known CSS keyword that is capitalized in order to make sure the SASS compiler would not treat it as SCSS in case the same keyword also exists in SCSS-world.
Couldn't find a similar issue in the
issues
page or Google:The below appear to break
node-sass
, only if a variable (custom property) exists inside theCalc
(capitalC
).I would expect
node-sass
to ignore casing ofCalc
or any known CSS keyword that is capitalized in order to make sure the SASS compiler would not treat it as SCSS in case the same keyword also exists in SCSS-world.I've tested on sassmeister.com and it works as expected.
7.0.15
v15.4.0
win32
x64
node-sass@5.0.0
The text was updated successfully, but these errors were encountered: