{"action":"created","issue":{"url":"https://api.github.com/repos/sass/sass/issues/1667","labels_url":"https://api.github.com/repos/sass/sass/issues/1667/labels{/name}","comments_url":"https://api.github.com/repos/sass/sass/issues/1667/comments","events_url":"https://api.github.com/repos/sass/sass/issues/1667/events","html_url":"https://github.com/sass/sass/issues/1667","id":61017575,"number":1667,"title":"placeholders wrapping empty style block cannot be extended","user":{"login":"wheresrhys","id":447559,"avatar_url":"https://avatars.githubusercontent.com/u/447559?v=3","gravatar_id":"","url":"https://api.github.com/users/wheresrhys","html_url":"https://github.com/wheresrhys","followers_url":"https://api.github.com/users/wheresrhys/followers","following_url":"https://api.github.com/users/wheresrhys/following{/other_user}","gists_url":"https://api.github.com/users/wheresrhys/gists{/gist_id}","starred_url":"https://api.github.com/users/wheresrhys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wheresrhys/subscriptions","organizations_url":"https://api.github.com/users/wheresrhys/orgs","repos_url":"https://api.github.com/users/wheresrhys/repos","events_url":"https://api.github.com/users/wheresrhys/events{/privacy}","received_events_url":"https://api.github.com/users/wheresrhys/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-13T09:03:39Z","updated_at":"2015-03-17T09:46:20Z","closed_at":"2015-03-16T21:28:07Z","body":"This looks like a bug to me\r\n\r\n```sass\r\n%place {\r\n\t// uncomment the following line and it compiles\r\n\t// color: red;\r\n}\r\n\r\n.place {\r\n  @extend %place;\r\n}\r\n```\r\nhttp://sassmeister.com/gist/569689a78d4d36635b23"},"comment":{"url":"https://api.github.com/repos/sass/sass/issues/comments/82249295","html_url":"https://github.com/sass/sass/issues/1667#issuecomment-82249295","issue_url":"https://api.github.com/repos/sass/sass/issues/1667","id":82249295,"user":{"login":"wheresrhys","id":447559,"avatar_url":"https://avatars.githubusercontent.com/u/447559?v=3","gravatar_id":"","url":"https://api.github.com/users/wheresrhys","html_url":"https://github.com/wheresrhys","followers_url":"https://api.github.com/users/wheresrhys/followers","following_url":"https://api.github.com/users/wheresrhys/following{/other_user}","gists_url":"https://api.github.com/users/wheresrhys/gists{/gist_id}","starred_url":"https://api.github.com/users/wheresrhys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wheresrhys/subscriptions","organizations_url":"https://api.github.com/users/wheresrhys/orgs","repos_url":"https://api.github.com/users/wheresrhys/repos","events_url":"https://api.github.com/users/wheresrhys/events{/privacy}","received_events_url":"https://api.github.com/users/wheresrhys/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T09:46:20Z","updated_at":"2015-03-17T09:46:20Z","body":"Say we have two modules, both of which can be configured to have some parts turned off. Another module uses their mixins to define styles for a placeholder.\r\n\r\n```sass\r\n// configured in the product\r\n$module1-styles-text: false; // but true by default\r\n$module2-styles-color: false; // but true by default\r\n\r\n// @import module1/main\r\n@mixin module1TextStyle () {\r\n  @if $module1-styles-text {\r\n    font-family: myfont\r\n  }\r\n}\r\n\r\n// @import module2/main\r\n@mixin module2Coloring\r\n  @if $module2-styles-color {\r\n    color: red\r\n  }\r\n}\r\n\r\n// @import module3/main\r\n%module3FancyText {\r\n  @include module1TextStyle();\r\n  @include module2Coloring();\r\n}\r\n\r\n// product styles\r\n.thing {\r\n   @extend %module3FancyText;\r\n}\r\n```\r\n\r\nWhether this use case is convincing or not I think the empty placeholder being coerced to undefined needs documenting anyway as the behaviour is a bit unusual."}}