{"action":"created","issue":{"url":"https://api.github.com/repos/less/less.js/issues/2104","labels_url":"https://api.github.com/repos/less/less.js/issues/2104/labels{/name}","comments_url":"https://api.github.com/repos/less/less.js/issues/2104/comments","events_url":"https://api.github.com/repos/less/less.js/issues/2104/events","html_url":"https://github.com/less/less.js/issues/2104","id":37662798,"number":2104,"title":"@document and @-moz-document should keep child and sibling relation just like the @media declaration? ","user":{"login":"bassjobsen","id":954055,"avatar_url":"https://avatars.githubusercontent.com/u/954055?v=3","gravatar_id":"","url":"https://api.github.com/users/bassjobsen","html_url":"https://github.com/bassjobsen","followers_url":"https://api.github.com/users/bassjobsen/followers","following_url":"https://api.github.com/users/bassjobsen/following{/other_user}","gists_url":"https://api.github.com/users/bassjobsen/gists{/gist_id}","starred_url":"https://api.github.com/users/bassjobsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bassjobsen/subscriptions","organizations_url":"https://api.github.com/users/bassjobsen/orgs","repos_url":"https://api.github.com/users/bassjobsen/repos","events_url":"https://api.github.com/users/bassjobsen/events{/privacy}","received_events_url":"https://api.github.com/users/bassjobsen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/less/less.js/labels/Feature%20Request","name":"Feature Request","color":"fe9400"},{"url":"https://api.github.com/repos/less/less.js/labels/Has%20Pull%20Request","name":"Has Pull Request","color":"d7e102"},{"url":"https://api.github.com/repos/less/less.js/labels/Low%20Priority","name":"Low Priority","color":"02e10c"},{"url":"https://api.github.com/repos/less/less.js/labels/ReadyForImplementation","name":"ReadyForImplementation","color":"006b75"}],"state":"closed","locked":false,"assignee":{"login":"SomMeri","id":618879,"avatar_url":"https://avatars.githubusercontent.com/u/618879?v=3","gravatar_id":"","url":"https://api.github.com/users/SomMeri","html_url":"https://github.com/SomMeri","followers_url":"https://api.github.com/users/SomMeri/followers","following_url":"https://api.github.com/users/SomMeri/following{/other_user}","gists_url":"https://api.github.com/users/SomMeri/gists{/gist_id}","starred_url":"https://api.github.com/users/SomMeri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SomMeri/subscriptions","organizations_url":"https://api.github.com/users/SomMeri/orgs","repos_url":"https://api.github.com/users/SomMeri/repos","events_url":"https://api.github.com/users/SomMeri/events{/privacy}","received_events_url":"https://api.github.com/users/SomMeri/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2014-07-11T14:04:50Z","updated_at":"2015-03-15T12:12:07Z","closed_at":"2015-03-15T12:12:07Z","body":"When reading this question at http://stackoverflow.com/questions/23743476/browser-specific-less-rules, i think @document and @-moz-document at rules should compile the same way as @media declaration do.\r\n\r\nCurrently the following Less code:\r\n\r\n\t.parent {\r\n\t\tcolor:green;\r\n\t\t\r\n\t\t@document url-prefix() {\r\n\t\t.child {\r\n\t\tcolor:red;\r\n\t\t}\r\n\t\t}\t\r\n\t}\r\n\r\nThe preceding compiles into the following CSS code:\r\n\r\n\t.parent {\r\n\t  color: green;\r\n\t}\r\n\t@document url-prefix() {\r\n\t  .child {\r\n\t\tcolor: red;\r\n\t  }\r\n\t}\r\n\r\nThe nested `.parent .child` selector has been lost inside the @document rule set.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/less/less.js/issues/comments/80985862","html_url":"https://github.com/less/less.js/issues/2104#issuecomment-80985862","issue_url":"https://api.github.com/repos/less/less.js/issues/2104","id":80985862,"user":{"login":"bassjobsen","id":954055,"avatar_url":"https://avatars.githubusercontent.com/u/954055?v=3","gravatar_id":"","url":"https://api.github.com/users/bassjobsen","html_url":"https://github.com/bassjobsen","followers_url":"https://api.github.com/users/bassjobsen/followers","following_url":"https://api.github.com/users/bassjobsen/following{/other_user}","gists_url":"https://api.github.com/users/bassjobsen/gists{/gist_id}","starred_url":"https://api.github.com/users/bassjobsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bassjobsen/subscriptions","organizations_url":"https://api.github.com/users/bassjobsen/orgs","repos_url":"https://api.github.com/users/bassjobsen/repos","events_url":"https://api.github.com/users/bassjobsen/events{/privacy}","received_events_url":"https://api.github.com/users/bassjobsen/received_events","type":"User","site_admin":false},"created_at":"2015-03-15T12:12:07Z","updated_at":"2015-03-15T12:12:07Z","body":"closed by #2473"}}