0

I'm using Visual Studio 2012 and Web Essential 2012 and Less generates the css not as, as expected

//style.less

 .selector{
     max-height: calc(100vh - 200px)
 }

In the style.css it's generates something like this

//style.css
.selector{
      max-height: calc(-100vh);
}

Any ideas?

Ruben.sar
  • 376
  • 3
  • 11
  • 1
    Possible duplicate of [Less Aggressive Compilation with CSS3 calc](http://stackoverflow.com/questions/11972084/less-aggressive-compilation-with-css3-calc) – Harry Feb 08 '16 at 13:36
  • your answer also duplicated [link](http://stackoverflow.com/questions/17904088/disable-less-css-overwriting-calc) – Ruben.sar Feb 08 '16 at 14:44
  • 1
    You can check the dates to see which is a duplicate of which. That comment to which you linked says that the thread you linked is a dupe of the one I linked. – Harry Feb 08 '16 at 14:46

1 Answers1

0

You have to use "escape" function as suggested in this answer to a similar question.

.selector{
     max-height: calc(100vh ~"-" 200px);
}
Community
  • 1
  • 1
Luca Detomi
  • 5,564
  • 7
  • 52
  • 77