{"action":"created","issue":{"url":"https://api.github.com/repos/less/less.js/issues/2962","repository_url":"https://api.github.com/repos/less/less.js","labels_url":"https://api.github.com/repos/less/less.js/issues/2962/labels{/name}","comments_url":"https://api.github.com/repos/less/less.js/issues/2962/comments","events_url":"https://api.github.com/repos/less/less.js/issues/2962/events","html_url":"https://github.com/less/less.js/issues/2962","id":176898109,"number":2962,"title":"Expressions inside unnecessary parenthesis not processed with strict-math option","user":{"login":"geleto","id":3138391,"avatar_url":"https://avatars.githubusercontent.com/u/3138391?v=3","gravatar_id":"","url":"https://api.github.com/users/geleto","html_url":"https://github.com/geleto","followers_url":"https://api.github.com/users/geleto/followers","following_url":"https://api.github.com/users/geleto/following{/other_user}","gists_url":"https://api.github.com/users/geleto/gists{/gist_id}","starred_url":"https://api.github.com/users/geleto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geleto/subscriptions","organizations_url":"https://api.github.com/users/geleto/orgs","repos_url":"https://api.github.com/users/geleto/repos","events_url":"https://api.github.com/users/geleto/events{/privacy}","received_events_url":"https://api.github.com/users/geleto/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/less/less.js/labels/Bug","name":"Bug","color":"e10c02"},{"url":"https://api.github.com/repos/less/less.js/labels/Low%20Priority","name":"Low Priority","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-14T12:47:20Z","updated_at":"2016-09-20T17:45:55Z","closed_at":"2016-09-20T17:45:55Z","body":"Hello,\r\nwith the strict-math option on, this calculation:\r\n`width: calc(100% - (10px  - 5px));`\r\nis not optimized, the output is exactly the same.\r\n\r\nWithout the strict-math option the output is, as expected:\r\n`width: calc(95%);`\r\n\r\nUsing less@2.7.1\r\n"},"comment":{"url":"https://api.github.com/repos/less/less.js/issues/comments/248377026","html_url":"https://github.com/less/less.js/issues/2962#issuecomment-248377026","issue_url":"https://api.github.com/repos/less/less.js/issues/2962","id":248377026,"user":{"login":"seven-phases-max","id":5304376,"avatar_url":"https://avatars.githubusercontent.com/u/5304376?v=3","gravatar_id":"","url":"https://api.github.com/users/seven-phases-max","html_url":"https://github.com/seven-phases-max","followers_url":"https://api.github.com/users/seven-phases-max/followers","following_url":"https://api.github.com/users/seven-phases-max/following{/other_user}","gists_url":"https://api.github.com/users/seven-phases-max/gists{/gist_id}","starred_url":"https://api.github.com/users/seven-phases-max/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seven-phases-max/subscriptions","organizations_url":"https://api.github.com/users/seven-phases-max/orgs","repos_url":"https://api.github.com/users/seven-phases-max/repos","events_url":"https://api.github.com/users/seven-phases-max/events{/privacy}","received_events_url":"https://api.github.com/users/seven-phases-max/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T17:45:55Z","updated_at":"2016-09-20T17:45:55Z","body":"Closing as not an issue:\r\n\r\n>With strict math on, only maths that is inside ***un-necessary parenthesis*** will be processed.\r\n\r\nThat is, if you want that `100% - (10px - 5px)` to be procesed by Less when the option is on it should be:\r\n```less\r\nwidth: calc((100% - (10px - 5px)));\r\n```"}}
{"actor":{"display_login":"seven-phases-max"}}