{"action":"opened","issue":{"url":"https://api.github.com/repos/sass/libsass/issues/1236","labels_url":"https://api.github.com/repos/sass/libsass/issues/1236/labels{/name}","comments_url":"https://api.github.com/repos/sass/libsass/issues/1236/comments","events_url":"https://api.github.com/repos/sass/libsass/issues/1236/events","html_url":"https://github.com/sass/libsass/issues/1236","id":80548690,"number":1236,"title":"Unexpected behaviour with @at-root","user":{"login":"HugoGiraudel","id":1889710,"avatar_url":"https://avatars.githubusercontent.com/u/1889710?v=3","gravatar_id":"","url":"https://api.github.com/users/HugoGiraudel","html_url":"https://github.com/HugoGiraudel","followers_url":"https://api.github.com/users/HugoGiraudel/followers","following_url":"https://api.github.com/users/HugoGiraudel/following{/other_user}","gists_url":"https://api.github.com/users/HugoGiraudel/gists{/gist_id}","starred_url":"https://api.github.com/users/HugoGiraudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HugoGiraudel/subscriptions","organizations_url":"https://api.github.com/users/HugoGiraudel/orgs","repos_url":"https://api.github.com/users/HugoGiraudel/repos","events_url":"https://api.github.com/users/HugoGiraudel/events{/privacy}","received_events_url":"https://api.github.com/users/HugoGiraudel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-25T14:09:47Z","updated_at":"2015-05-25T14:09:47Z","closed_at":null,"body":"Bug found by Jaime Caballero: https://twitter.com/jaicab_/status/602583391515574273.\r\n\r\n## Test case\r\n\r\n```scss\r\n@mixin test {\r\n  $selector-list: &;                 // (.a .b,)\r\n  $selector: nth($selector-list, 1); // (.a .b)\r\n  $first: nth($selector, 1);         // .a\r\n  $second: nth($selector, 2);        // .b\r\n  $add: 'dummy';\r\n  \r\n  @at-root #{$first $add $second} {\r\n    @content;\r\n  }\r\n}\r\n\r\n\r\n.a .b {\r\n  @include test {\r\n    color: red;\r\n  }\r\n}\r\n```\r\n\r\n## Expected result\r\n\r\n```css\r\n.a dummy .b {\r\n  color: red;\r\n}\r\n```\r\n\r\n## Actual result (LibSass 3.2.4)\r\n\r\n```css\r\n.a .b .a dummy .b {\r\n  color: red;\r\n}\r\n```"}}