{"action":"created","issue":{"url":"https://api.github.com/repos/leafo/scssphp/issues/67","labels_url":"https://api.github.com/repos/leafo/scssphp/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/leafo/scssphp/issues/67/comments","events_url":"https://api.github.com/repos/leafo/scssphp/issues/67/events","html_url":"https://github.com/leafo/scssphp/issues/67","id":12402589,"number":67,"title":"Weird @extend behavior","user":{"login":"Kenneth-KT","id":2994474,"avatar_url":"https://avatars.githubusercontent.com/u/2994474?v=3","gravatar_id":"","url":"https://api.github.com/users/Kenneth-KT","html_url":"https://github.com/Kenneth-KT","followers_url":"https://api.github.com/users/Kenneth-KT/followers","following_url":"https://api.github.com/users/Kenneth-KT/following{/other_user}","gists_url":"https://api.github.com/users/Kenneth-KT/gists{/gist_id}","starred_url":"https://api.github.com/users/Kenneth-KT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kenneth-KT/subscriptions","organizations_url":"https://api.github.com/users/Kenneth-KT/orgs","repos_url":"https://api.github.com/users/Kenneth-KT/repos","events_url":"https://api.github.com/users/Kenneth-KT/events{/privacy}","received_events_url":"https://api.github.com/users/Kenneth-KT/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-03-25T14:34:37Z","updated_at":"2015-06-23T16:16:34Z","closed_at":null,"body":"When I test the compiler with this input, i found that the behavior of @extend is very weird\r\n\r\n```SCSS\r\n.nav-bar {\r\n\tbackground: #eee;\r\n\t> .item {\r\n\t\tmargin: 0 10px;\r\n\t}\r\n}\r\n\r\n\r\nheader ul {\r\n\t@extend .nav-bar;\r\n\t> li {\r\n\t\t@extend .item;\r\n\t}\r\n}\r\n```\r\nIt gives out the following output, notice the repeated \"header ul >\" in the css selector (pay attention on the comma)\r\n\r\n```CSS\r\n.nav-bar, header ul {\r\n  background: #eee; }\r\n  .nav-bar > .item, header ul > .item, header ul > header ul > li, header ul > header ul > li, .nav-bar > header ul > li, header ul > .nav-bar > li {\r\n    margin: 0 10px; }\r\n```\r\n\r\nWhile I test the same input in the official compiler http://sass-lang.com/try.html, it gives out the correct output\r\n\r\n```CSS\r\n.nav-bar, header ul {\r\n  background: #eee; }\r\n  .nav-bar > .item, header ul > .item, header ul.nav-bar > li, header ul > li {\r\n    margin: 0 10px; }\r\n```"},"comment":{"url":"https://api.github.com/repos/leafo/scssphp/issues/comments/114560706","html_url":"https://github.com/leafo/scssphp/issues/67#issuecomment-114560706","issue_url":"https://api.github.com/repos/leafo/scssphp/issues/67","id":114560706,"user":{"login":"robocoder","id":922051,"avatar_url":"https://avatars.githubusercontent.com/u/922051?v=3","gravatar_id":"","url":"https://api.github.com/users/robocoder","html_url":"https://github.com/robocoder","followers_url":"https://api.github.com/users/robocoder/followers","following_url":"https://api.github.com/users/robocoder/following{/other_user}","gists_url":"https://api.github.com/users/robocoder/gists{/gist_id}","starred_url":"https://api.github.com/users/robocoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robocoder/subscriptions","organizations_url":"https://api.github.com/users/robocoder/orgs","repos_url":"https://api.github.com/users/robocoder/repos","events_url":"https://api.github.com/users/robocoder/events{/privacy}","received_events_url":"https://api.github.com/users/robocoder/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T16:16:34Z","updated_at":"2015-06-23T16:16:34Z","body":"The behavior in sass 3.4.13 is a bit different:\r\n```\r\n.nav-bar, header ul {\r\n  background: #eee; }\r\n  .nav-bar > .item, header ul > .item, header ul > li {\r\n    margin: 0 10px; }\r\n```"}}