{"action":"created","issue":{"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/566","labels_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/566/labels{/name}","comments_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/566/comments","events_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/566/events","html_url":"https://github.com/jakubpawlowicz/clean-css/issues/566","id":73842940,"number":566,"title":"Selector merging breaks ::selection","user":{"login":"aguynamedruchir","id":5829948,"avatar_url":"https://avatars.githubusercontent.com/u/5829948?v=3","gravatar_id":"","url":"https://api.github.com/users/aguynamedruchir","html_url":"https://github.com/aguynamedruchir","followers_url":"https://api.github.com/users/aguynamedruchir/followers","following_url":"https://api.github.com/users/aguynamedruchir/following{/other_user}","gists_url":"https://api.github.com/users/aguynamedruchir/gists{/gist_id}","starred_url":"https://api.github.com/users/aguynamedruchir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aguynamedruchir/subscriptions","organizations_url":"https://api.github.com/users/aguynamedruchir/orgs","repos_url":"https://api.github.com/users/aguynamedruchir/repos","events_url":"https://api.github.com/users/aguynamedruchir/events{/privacy}","received_events_url":"https://api.github.com/users/aguynamedruchir/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-07T04:58:50Z","updated_at":"2015-05-07T08:46:00Z","closed_at":"2015-05-07T07:07:39Z","body":"```\r\n::-moz-selection {\r\n  background: #b3d4fc;\r\n}\r\n\r\n::selection {\r\n  background: #b3d4fc;\r\n}\r\n```\r\n\r\n:arrow_down:\r\n\r\n```\r\n::-moz-selection,::selection {\r\n    background: #b3d4fc\r\n}\r\n```\r\n\r\n---\r\n\r\nThe selectors need to be separate to work. \r\n\r\nFrom [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/::selection)\r\n> Due to the fact that the CSS parsing rules require dropping the whole rule when encountering an invalid pseudo-element, two separate rules must be written: `::-moz-selection`, `::selection {...}`.\r\n\r\nThis should be the output\r\n\r\n```\r\n::-moz-selection {\r\n    background: #b3d4fc\r\n}\r\n\r\n::selection {\r\n    background: #b3d4fc\r\n}\r\n```\r\n\r\nThe workaround for now is to disable `advanced` mode."},"comment":{"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/comments/99776809","html_url":"https://github.com/jakubpawlowicz/clean-css/issues/566#issuecomment-99776809","issue_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/566","id":99776809,"user":{"login":"aguynamedruchir","id":5829948,"avatar_url":"https://avatars.githubusercontent.com/u/5829948?v=3","gravatar_id":"","url":"https://api.github.com/users/aguynamedruchir","html_url":"https://github.com/aguynamedruchir","followers_url":"https://api.github.com/users/aguynamedruchir/followers","following_url":"https://api.github.com/users/aguynamedruchir/following{/other_user}","gists_url":"https://api.github.com/users/aguynamedruchir/gists{/gist_id}","starred_url":"https://api.github.com/users/aguynamedruchir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aguynamedruchir/subscriptions","organizations_url":"https://api.github.com/users/aguynamedruchir/orgs","repos_url":"https://api.github.com/users/aguynamedruchir/repos","events_url":"https://api.github.com/users/aguynamedruchir/events{/privacy}","received_events_url":"https://api.github.com/users/aguynamedruchir/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T08:46:00Z","updated_at":"2015-05-07T08:46:00Z","body":"Yup!\r\n\r\nI was using this with gulp ([gulp-minify-css](https://github.com/jonathanepollack/gulp-minify-css)). Ran an update and it works perfectly now. Thanks!"}}