{"action":"created","issue":{"url":"https://api.github.com/repos/sass/sass/issues/1425","repository_url":"https://api.github.com/repos/sass/sass","labels_url":"https://api.github.com/repos/sass/sass/issues/1425/labels{/name}","comments_url":"https://api.github.com/repos/sass/sass/issues/1425/comments","events_url":"https://api.github.com/repos/sass/sass/issues/1425/events","html_url":"https://github.com/sass/sass/issues/1425","id":42401652,"node_id":"MDU6SXNzdWU0MjQwMTY1Mg==","number":1425,"title":"Support \"selector&\"","user":{"login":"maranomynet","id":86827,"node_id":"MDQ6VXNlcjg2ODI3","avatar_url":"https://avatars1.githubusercontent.com/u/86827?v=4","gravatar_id":"","url":"https://api.github.com/users/maranomynet","html_url":"https://github.com/maranomynet","followers_url":"https://api.github.com/users/maranomynet/followers","following_url":"https://api.github.com/users/maranomynet/following{/other_user}","gists_url":"https://api.github.com/users/maranomynet/gists{/gist_id}","starred_url":"https://api.github.com/users/maranomynet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maranomynet/subscriptions","organizations_url":"https://api.github.com/users/maranomynet/orgs","repos_url":"https://api.github.com/users/maranomynet/repos","events_url":"https://api.github.com/users/maranomynet/events{/privacy}","received_events_url":"https://api.github.com/users/maranomynet/received_events","type":"User","site_admin":false},"labels":[{"id":134810,"node_id":"MDU6TGFiZWwxMzQ4MTA=","url":"https://api.github.com/repos/sass/sass/labels/Feature","name":"Feature","color":"0b02e1","default":false},{"id":251105698,"node_id":"MDU6TGFiZWwyNTExMDU2OTg=","url":"https://api.github.com/repos/sass/sass/labels/Help%20Wanted","name":"Help Wanted","color":"009800","default":false},{"id":70573316,"node_id":"MDU6TGFiZWw3MDU3MzMxNg==","url":"https://api.github.com/repos/sass/sass/labels/Planned","name":"Planned","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2014-09-10T11:10:42Z","updated_at":"2018-07-18T12:59:00Z","closed_at":null,"author_association":"NONE","body":"``` scss\n.bar {\n    foo& { \n        color: baz;\n    }\n}\n```\n\nCauses an error. (See: http://codepen.io/anon/pen/GIufH)\n\nThis is surprising (since `.bar { foo & { ... } }` works like a charm), and this error prevents several useful selector prefixing patterns.\n"},"comment":{"url":"https://api.github.com/repos/sass/sass/issues/comments/405921429","html_url":"https://github.com/sass/sass/issues/1425#issuecomment-405921429","issue_url":"https://api.github.com/repos/sass/sass/issues/1425","id":405921429,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTkyMTQyOQ==","user":{"login":"arkonan","id":365973,"node_id":"MDQ6VXNlcjM2NTk3Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/365973?v=4","gravatar_id":"","url":"https://api.github.com/users/arkonan","html_url":"https://github.com/arkonan","followers_url":"https://api.github.com/users/arkonan/followers","following_url":"https://api.github.com/users/arkonan/following{/other_user}","gists_url":"https://api.github.com/users/arkonan/gists{/gist_id}","starred_url":"https://api.github.com/users/arkonan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arkonan/subscriptions","organizations_url":"https://api.github.com/users/arkonan/orgs","repos_url":"https://api.github.com/users/arkonan/repos","events_url":"https://api.github.com/users/arkonan/events{/privacy}","received_events_url":"https://api.github.com/users/arkonan/received_events","type":"User","site_admin":false},"created_at":"2018-07-18T12:59:00Z","updated_at":"2018-07-18T12:59:00Z","author_association":"NONE","body":"Personally I think that supporting `selector&` would be easier for users to understand.  Currently the situation is like this:\r\n```\r\n& selector { }  // works\r\nselector & { }  // works\r\n&selector { }   // works\r\nselector& { }   // doesn't work\r\n```\r\n\r\nI do agree that if Sass chooses to support `selector&` that it should have a behavior consistent with `&selector`.  Having `selector&` behave like `selector-unify()` when `&selector` behaves like `@at-root` would be even more surprising than it just not working."}}
{"actor":{"display_login":"arkonan"}}