In my _main.less
file, I have the following styling:
#mapid {
width: 100%;
min-height: min(65vh, 500px);
max-height: 500px;
}
However, when using the Less compiler with grunt, it throws an error:
>> File "public/less/_main.less" changed.
Running "less:development" (less) task
>> ./public/less/_main.less: [L86:C14] error evaluating function `min`: incompatible types
Warning: Error compiling ./public/less/_main.less Use --force to continue.
Aborted due to warnings.
This code works perfectly fine in CSS (see docs).