{"action":"created","issue":{"url":"https://api.github.com/repos/postcss/postcss-scss/issues/39","repository_url":"https://api.github.com/repos/postcss/postcss-scss","labels_url":"https://api.github.com/repos/postcss/postcss-scss/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/postcss/postcss-scss/issues/39/comments","events_url":"https://api.github.com/repos/postcss/postcss-scss/issues/39/events","html_url":"https://github.com/postcss/postcss-scss/issues/39","id":167895432,"number":39,"title":"SCSS nested properties issue","user":{"login":"dryoma","id":11942776,"avatar_url":"https://avatars.githubusercontent.com/u/11942776?v=3","gravatar_id":"","url":"https://api.github.com/users/dryoma","html_url":"https://github.com/dryoma","followers_url":"https://api.github.com/users/dryoma/followers","following_url":"https://api.github.com/users/dryoma/following{/other_user}","gists_url":"https://api.github.com/users/dryoma/gists{/gist_id}","starred_url":"https://api.github.com/users/dryoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dryoma/subscriptions","organizations_url":"https://api.github.com/users/dryoma/orgs","repos_url":"https://api.github.com/users/dryoma/repos","events_url":"https://api.github.com/users/dryoma/events{/privacy}","received_events_url":"https://api.github.com/users/dryoma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-27T16:16:51Z","updated_at":"2016-07-27T17:09:51Z","closed_at":null,"body":"Sorry for bringing this up again. Yet the [previous issue](https://github.com/postcss/postcss-scss/issues/31) was about an exception thrown. An my question is about the very parsing.\r\n\r\nRight now, parsing this\r\n\r\n```scss\r\na {\r\n  font: 10px/1 Arial {\r\n    weight: 500;\r\n  }\r\n}\r\n```\r\nwith PostCSS in postcss-scss syntax will result in the nested props block be considered a *nested ruleset*. And `font: 10px/1 Arial` will become a `selector` property of the corresponding PostCSS node object.\r\n\r\nSo the question is: is it in `postcss-scss` scope to correctly parse that `font: 10px/1 Arial` part? (it also applies to just `font:` with no value). I'm not sure how exactly it would be implemented; maybe a new node `type`, like `nested-decl`. Or just adding `nested-decl: true, prop: \"font\", value: \"10px/1 Arial\"` property set to an object. \r\n\r\nI suppose PostCSS would refuse to do it since the syntax is not standard. And yet, we have an obvious flaw in a parsing stack."},"comment":{"url":"https://api.github.com/repos/postcss/postcss-scss/issues/comments/235653355","html_url":"https://github.com/postcss/postcss-scss/issues/39#issuecomment-235653355","issue_url":"https://api.github.com/repos/postcss/postcss-scss/issues/39","id":235653355,"user":{"login":"dryoma","id":11942776,"avatar_url":"https://avatars.githubusercontent.com/u/11942776?v=3","gravatar_id":"","url":"https://api.github.com/users/dryoma","html_url":"https://github.com/dryoma","followers_url":"https://api.github.com/users/dryoma/followers","following_url":"https://api.github.com/users/dryoma/following{/other_user}","gists_url":"https://api.github.com/users/dryoma/gists{/gist_id}","starred_url":"https://api.github.com/users/dryoma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dryoma/subscriptions","organizations_url":"https://api.github.com/users/dryoma/orgs","repos_url":"https://api.github.com/users/dryoma/repos","events_url":"https://api.github.com/users/dryoma/events{/privacy}","received_events_url":"https://api.github.com/users/dryoma/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T17:09:51Z","updated_at":"2016-07-27T17:09:51Z","body":"Yup, [it is](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#nested_properties). In fact, all these are (according to [Sassmeister](http://www.sassmeister.com/)):\r\n```scss\r\nfont: {\r\n  weight: 500;\r\n}\r\n```\r\n```scss\r\nfont: 10px/1 Arial {\r\n  weight: 500;\r\n}\r\n```\r\n```scss\r\n#{func-name($a: \"something\")}: 10px/1 Arial {\r\n  weight: 500;\r\n}\r\n```\r\n```scss\r\nfont: #{func-name($a: \"something\")}/1 Arial {\r\n  weight: 500;\r\n}\r\n```"}}
{"actor":{"display_login":"dryoma"}}