{"action":"opened","issue":{"url":"https://api.github.com/repos/madskristensen/WebCompiler/issues/200","repository_url":"https://api.github.com/repos/madskristensen/WebCompiler","labels_url":"https://api.github.com/repos/madskristensen/WebCompiler/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/madskristensen/WebCompiler/issues/200/comments","events_url":"https://api.github.com/repos/madskristensen/WebCompiler/issues/200/events","html_url":"https://github.com/madskristensen/WebCompiler/issues/200","id":145244332,"number":200,"title":"LESS calc() incorrect with variable units.","user":{"login":"esargent","id":14894721,"avatar_url":"https://avatars.githubusercontent.com/u/14894721?v=3","gravatar_id":"","url":"https://api.github.com/users/esargent","html_url":"https://github.com/esargent","followers_url":"https://api.github.com/users/esargent/followers","following_url":"https://api.github.com/users/esargent/following{/other_user}","gists_url":"https://api.github.com/users/esargent/gists{/gist_id}","starred_url":"https://api.github.com/users/esargent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esargent/subscriptions","organizations_url":"https://api.github.com/users/esargent/orgs","repos_url":"https://api.github.com/users/esargent/repos","events_url":"https://api.github.com/users/esargent/events{/privacy}","received_events_url":"https://api.github.com/users/esargent/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-01T18:00:43Z","updated_at":"2016-04-01T18:00:43Z","closed_at":null,"body":"### Installed product versions\r\n- Visual Studio: 2015 Professional, Update 1\r\n- This extension: 1.10.306\r\n\r\n### Description\r\ncompiling LESS files with a calc() function which uses different units results in an incorrect simplification. For example - calc(76vh - 71px) ==> calc(5vh)\r\n\r\n### Steps to recreate\r\n1. Create a less file\r\n2. Add lines, such as\r\n     .somestyle{height: calc(76vh - 71px);}\r\n     .somestyle2{height: calc(72vh - 71px);}\r\n3. Save/compile.\r\n4. Examine the resulting css file to see that the formulas have been simplified - but are now incorrect.\r\n\r\n### Current behavior\r\nsimplifying the calc() results in unexpected and unwanted behavior.\r\n\r\n### Expected behavior\r\ncalc() should remain the same as specified. units like 'vh' can't be known until runtime and are device dependent."}}