{"action":"closed","issue":{"url":"https://api.github.com/repos/stylus/stylus/issues/2121","repository_url":"https://api.github.com/repos/stylus/stylus","labels_url":"https://api.github.com/repos/stylus/stylus/issues/2121/labels{/name}","comments_url":"https://api.github.com/repos/stylus/stylus/issues/2121/comments","events_url":"https://api.github.com/repos/stylus/stylus/issues/2121/events","html_url":"https://github.com/stylus/stylus/issues/2121","id":135575030,"number":2121,"title":"Get parent selector combinator?","user":{"login":"thybzi","id":1572675,"avatar_url":"https://avatars.githubusercontent.com/u/1572675?v=3","gravatar_id":"","url":"https://api.github.com/users/thybzi","html_url":"https://github.com/thybzi","followers_url":"https://api.github.com/users/thybzi/followers","following_url":"https://api.github.com/users/thybzi/following{/other_user}","gists_url":"https://api.github.com/users/thybzi/gists{/gist_id}","starred_url":"https://api.github.com/users/thybzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thybzi/subscriptions","organizations_url":"https://api.github.com/users/thybzi/orgs","repos_url":"https://api.github.com/users/thybzi/repos","events_url":"https://api.github.com/users/thybzi/events{/privacy}","received_events_url":"https://api.github.com/users/thybzi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-22T23:12:18Z","updated_at":"2016-03-01T15:52:07Z","closed_at":"2016-03-01T15:52:07Z","body":"One more thing I'd like to ask.\r\n\r\nIs there any way (existing or planning) to get the [combinator](https://www.w3.org/TR/selectors/#combinators) of parent selector rule?\r\n\r\nI mean this:\r\n```styl\r\n.wrapper\r\n\r\n  & > figure\r\n     // somehow get '>' here to use in selectors\r\n```\r\n\r\nTogether with partial modifiers from [future spec](https://github.com/stylus/stylus/issues/1240), it can provide an elegant way to generate the following CSS code from within the `& > figure` block.\r\n\r\n```css\r\n.wrapper > figure + *,\r\n.wrapper > * + figure {\r\n  margin-top: 24px;\r\n}\r\n```"}}