{"action":"closed","issue":{"url":"https://api.github.com/repos/sass/libsass/issues/948","labels_url":"https://api.github.com/repos/sass/libsass/issues/948/labels{/name}","comments_url":"https://api.github.com/repos/sass/libsass/issues/948/comments","events_url":"https://api.github.com/repos/sass/libsass/issues/948/events","html_url":"https://github.com/sass/libsass/issues/948","id":61866823,"number":948,"title":"Dynamic division with interpolation not compatible with libsass","user":{"login":"atomicpages","id":1824291,"avatar_url":"https://avatars.githubusercontent.com/u/1824291?v=3","gravatar_id":"","url":"https://api.github.com/users/atomicpages","html_url":"https://github.com/atomicpages","followers_url":"https://api.github.com/users/atomicpages/followers","following_url":"https://api.github.com/users/atomicpages/following{/other_user}","gists_url":"https://api.github.com/users/atomicpages/gists{/gist_id}","starred_url":"https://api.github.com/users/atomicpages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atomicpages/subscriptions","organizations_url":"https://api.github.com/users/atomicpages/orgs","repos_url":"https://api.github.com/users/atomicpages/repos","events_url":"https://api.github.com/users/atomicpages/events{/privacy}","received_events_url":"https://api.github.com/users/atomicpages/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sass/libsass/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/sass/libsass/labels/PR%20Ready","name":"PR Ready","color":"00FF00"},{"url":"https://api.github.com/repos/sass/libsass/labels/test%20written","name":"test written","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"mgreter","id":282293,"avatar_url":"https://avatars.githubusercontent.com/u/282293?v=3","gravatar_id":"","url":"https://api.github.com/users/mgreter","html_url":"https://github.com/mgreter","followers_url":"https://api.github.com/users/mgreter/followers","following_url":"https://api.github.com/users/mgreter/following{/other_user}","gists_url":"https://api.github.com/users/mgreter/gists{/gist_id}","starred_url":"https://api.github.com/users/mgreter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgreter/subscriptions","organizations_url":"https://api.github.com/users/mgreter/orgs","repos_url":"https://api.github.com/users/mgreter/repos","events_url":"https://api.github.com/users/mgreter/events{/privacy}","received_events_url":"https://api.github.com/users/mgreter/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/sass/libsass/milestones/8","html_url":"https://github.com/sass/libsass/milestones/3.2.3","labels_url":"https://api.github.com/repos/sass/libsass/milestones/8/labels","id":1095766,"number":8,"title":"3.2.3","description":"Next Bugfix Release","creator":{"login":"mgreter","id":282293,"avatar_url":"https://avatars.githubusercontent.com/u/282293?v=3","gravatar_id":"","url":"https://api.github.com/users/mgreter","html_url":"https://github.com/mgreter","followers_url":"https://api.github.com/users/mgreter/followers","following_url":"https://api.github.com/users/mgreter/following{/other_user}","gists_url":"https://api.github.com/users/mgreter/gists{/gist_id}","starred_url":"https://api.github.com/users/mgreter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgreter/subscriptions","organizations_url":"https://api.github.com/users/mgreter/orgs","repos_url":"https://api.github.com/users/mgreter/repos","events_url":"https://api.github.com/users/mgreter/events{/privacy}","received_events_url":"https://api.github.com/users/mgreter/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":32,"state":"open","created_at":"2015-05-04T20:27:49Z","updated_at":"2015-05-09T04:32:03Z","due_on":"2015-05-21T22:00:00Z","closed_at":null},"comments":4,"created_at":"2015-03-15T17:04:54Z","updated_at":"2015-05-09T04:32:03Z","closed_at":"2015-05-09T04:32:03Z","body":"Found this problem with playing with node-sass the other day with this code snippet:\r\n\r\n```\r\n@function _calcRU($px, $base, $unit) {\r\n\t$unit: quote($unit);\r\n\r\n\t@if not $unit == \"em\" or not $unit == \"rem\" or not $unit == \"%\" {\r\n\t\t@debug \"Invalid unit, choose 'em' or 'rem'\";\r\n\t\t@return null;\r\n\t}\r\n\r\n\t@if not unitless($px) {\r\n\t\t$px: strip-units($px);\r\n\t}\r\n\r\n\t@if not unitless($base) {\r\n\t\t$base: strip-units($base);\r\n\t}\r\n\r\n\t@if($unit == \"%\") {\r\n\t\t@return percentage($px / $base);\r\n\t}\r\n\r\n\t@return ($px / $base) * 1#{$unit};\r\n}\r\n```\r\n\r\nThis test with Sass 3.2.19  and above\r\n```\r\nbody {\r\n\tfont-size: _calcRU(12, 10, \"%\");\r\n\tfont-size: _calcRU(16, 10, \"rem\");\r\n\tfont-size: _calcRU(20, 10, \"em\");\r\n\tfont-size: _calcRU(24, 10, \"rem\");\r\n}\r\n```\r\n\r\nyields\r\n```\r\nbody {\r\n\tfont-size: 120%;\r\n\tfont-size: 1.6rem;\r\n\tfont-size: 2em;\r\n\tfont-size: 2.4rem;\r\n}\r\n```\r\n\r\nTesting with the current libsass master I get `\"invalid operands for multiplication\"`.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9590893-dynamic-division-with-interpolation-not-compatible-with-libsass?utm_campaign=plugin&utm_content=tracker%2F283068&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F283068&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"}}