{"action":"opened","issue":{"url":"https://api.github.com/repos/sass/libsass/issues/1023","labels_url":"https://api.github.com/repos/sass/libsass/issues/1023/labels{/name}","comments_url":"https://api.github.com/repos/sass/libsass/issues/1023/comments","events_url":"https://api.github.com/repos/sass/libsass/issues/1023/events","html_url":"https://github.com/sass/libsass/issues/1023","id":65741119,"number":1023,"title":"An incorrect error when extending a placeholder class containing @media rules","user":{"login":"mzgol","id":1758366,"avatar_url":"https://avatars.githubusercontent.com/u/1758366?v=3","gravatar_id":"","url":"https://api.github.com/users/mzgol","html_url":"https://github.com/mzgol","followers_url":"https://api.github.com/users/mzgol/followers","following_url":"https://api.github.com/users/mzgol/following{/other_user}","gists_url":"https://api.github.com/users/mzgol/gists{/gist_id}","starred_url":"https://api.github.com/users/mzgol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzgol/subscriptions","organizations_url":"https://api.github.com/users/mzgol/orgs","repos_url":"https://api.github.com/users/mzgol/repos","events_url":"https://api.github.com/users/mzgol/events{/privacy}","received_events_url":"https://api.github.com/users/mzgol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-01T17:48:26Z","updated_at":"2015-04-01T17:48:26Z","closed_at":null,"body":"The following SCSS:\r\n```scss\r\n%a {\r\n    display: flex;\r\n}\r\n\r\n%b {\r\n    @extend %a;\r\n\r\n    @media screen {\r\n        div {\r\n            display: flex;\r\n        }\r\n    }\r\n}\r\n\r\na {\r\n    @extend %b;\r\n}\r\n```\r\ncauses an error:\r\n```\r\n>> You may not @extend an outer selector from within @media.\r\n>> You may only @extend selectors within the same directive.\r\n>> From \"@extend %b\" on line 16 of app/core-styles/_accordion.scss\r\n>> \r\n>>   Line 9  Column 12  app/core-styles/_accordion.scss\r\n```\r\nAs you can see, nothing is extended from within a media query. Ruby Sass parses it fine.\r\n\r\nnode-sass `3.0.0-beta.4`."}}