{"action":"created","issue":{"url":"https://api.github.com/repos/concrete5/concrete5/issues/2451","labels_url":"https://api.github.com/repos/concrete5/concrete5/issues/2451/labels{/name}","comments_url":"https://api.github.com/repos/concrete5/concrete5/issues/2451/comments","events_url":"https://api.github.com/repos/concrete5/concrete5/issues/2451/events","html_url":"https://github.com/concrete5/concrete5/issues/2451","id":77559116,"number":2451,"title":"@font-face merges with next selector","user":{"login":"Ruudt","id":1218555,"avatar_url":"https://avatars.githubusercontent.com/u/1218555?v=3","gravatar_id":"","url":"https://api.github.com/users/Ruudt","html_url":"https://github.com/Ruudt","followers_url":"https://api.github.com/users/Ruudt/followers","following_url":"https://api.github.com/users/Ruudt/following{/other_user}","gists_url":"https://api.github.com/users/Ruudt/gists{/gist_id}","starred_url":"https://api.github.com/users/Ruudt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ruudt/subscriptions","organizations_url":"https://api.github.com/users/Ruudt/orgs","repos_url":"https://api.github.com/users/Ruudt/repos","events_url":"https://api.github.com/users/Ruudt/events{/privacy}","received_events_url":"https://api.github.com/users/Ruudt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/concrete5/concrete5/labels/code:vendors","name":"code:vendors","color":"5319e7"},{"url":"https://api.github.com/repos/concrete5/concrete5/labels/status:under%20discussion","name":"status:under discussion","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-05-18T08:27:34Z","updated_at":"2015-05-21T17:00:35Z","closed_at":null,"body":"When I use @font-face the entire rule collapses together with the next selector.\r\n\r\n```less\r\n@font-face {\r\n\tfont-family: somefont;\r\n\tsrc: url(fonts/somefont-webfont.eot);\r\n\tsrc: url(fonts/somefont-webfont.eot?#iefix) format(embedded-opentype),\r\n\turl(fonts/somefont-webfont.woff2) format(woff2),\r\n\turl(fonts/somefont-webfont.woff) format(woff),\r\n\turl(fonts/somefont-webfont.ttf) format(truetype),\r\n\turl(fonts/somefont-webfont.svg#somefont) format(svg);\r\n\tfont-weight: normal;\r\n\tfont-style: normal;\r\n}\r\n\r\nbody {\r\n\tbackground: #f00;\r\n}\r\n```\r\n\r\nbecomes\r\n```css\r\n@font-face {\r\n\tbackground: #f00;\r\n}\r\n```\r\n\r\nI can see this should work with LESS at http://codepen.io/anon/pen/KpMvXP But I also looked it up, and tried a suggestion to turn part into a mixin: http://codepen.io/anon/pen/gpMxxd I tried several alternatives, and the only one that works is the obvious:\r\n\r\n```less\r\n@font-face {\r\n\tanything: will-work;\r\n}\r\n\r\nlost-in-space {\r\n\tfont-family: somefont;\r\n\tsrc: url(fonts/somefont-webfont.eot);\r\n\tsrc: url(fonts/somefont-webfont.eot?#iefix) format(embedded-opentype),\r\n\turl(fonts/somefont-webfont.woff2) format(woff2),\r\n\turl(fonts/somefont-webfont.woff) format(woff),\r\n\turl(fonts/somefont-webfont.ttf) format(truetype),\r\n\turl(fonts/somefont-webfont.svg#somefont) format(svg);\r\n\tfont-weight: normal;\r\n\tfont-style: normal;\r\n}\r\n\r\nbody {\r\n\tbackground: #f00;\r\n}\r\n```\r\n\r\nThis is probably a vendor library issue, but it goes wrong in any Concrete5 website."},"comment":{"url":"https://api.github.com/repos/concrete5/concrete5/issues/comments/104354930","html_url":"https://github.com/concrete5/concrete5/issues/2451#issuecomment-104354930","issue_url":"https://api.github.com/repos/concrete5/concrete5/issues/2451","id":104354930,"user":{"login":"mlocati","id":928116,"avatar_url":"https://avatars.githubusercontent.com/u/928116?v=3","gravatar_id":"","url":"https://api.github.com/users/mlocati","html_url":"https://github.com/mlocati","followers_url":"https://api.github.com/users/mlocati/followers","following_url":"https://api.github.com/users/mlocati/following{/other_user}","gists_url":"https://api.github.com/users/mlocati/gists{/gist_id}","starred_url":"https://api.github.com/users/mlocati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlocati/subscriptions","organizations_url":"https://api.github.com/users/mlocati/orgs","repos_url":"https://api.github.com/users/mlocati/repos","events_url":"https://api.github.com/users/mlocati/events{/privacy}","received_events_url":"https://api.github.com/users/mlocati/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T17:00:35Z","updated_at":"2015-05-21T17:00:35Z","body":"@aembler https://github.com/natxet/CssMin/pull/11 has been accepted.\r\nI do think that we should switch to `natxet/cssmin`: it's actively maintained.\r\nIf it's ok I can create a pull request."}}