{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/minify/issues/106","labels_url":"https://api.github.com/repos/chrsmith/minify/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/minify/issues/106/comments","events_url":"https://api.github.com/repos/chrsmith/minify/issues/106/events","html_url":"https://github.com/chrsmith/minify/issues/106","id":58993762,"number":106,"title":"CSS @charset declaration mangled","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/minify/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/minify/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/minify/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-26T00:19:49Z","updated_at":"2015-02-26T00:19:50Z","closed_at":"2015-02-26T00:19:49Z","body":"```\nMinify version: 2.1.2\nPHP version: 5.2.6\n\nWhat steps will reproduce the problem?\n1. Minify a CSS Stylesheet with a @charset declaration in the first line\n2.\n3.\n\nExpected output: @charset rests in the first line, the other CSS\ndeclarations get minified from the second line on\n\nActual output: @charset gets minified with the other declarations. The\n@charset declaration gets invalid and is ignored by the browsers.\n\nDid any unit tests FAIL? (Please do not post the full list)\n!WARN: environment : Local HTTP request failed. Testing cannot continue.\n```\n\n-----\nOriginal issue reported on code.google.com by `p.jer...@gmail.com` on 21 Apr 2009 at 11:34"},"comment":{"url":"https://api.github.com/repos/chrsmith/minify/issues/comments/76094115","html_url":"https://github.com/chrsmith/minify/issues/106#issuecomment-76094115","issue_url":"https://api.github.com/repos/chrsmith/minify/issues/106","id":76094115,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T00:19:50Z","updated_at":"2015-02-26T00:19:50Z","body":"```\nWhat charset did you use and how was it mangled?\n\n>> I use UTF-8, as you can see in the following snippet:\n\n>> @charset \"UTF-8\";@media screen,projection{body{background:#4d87c7 url\n>> (\"/css/images/bg_blue.png\") repeat-x top left fixed;padding:10px\n>> 0}#page_margins{margin:0\n\n>> The problem is, that all CSS validators criticise that the @charset \ndeclaration \n>> should stand ALONE in the FIRST LINE.\n\nAlso note you must ensure all combined file have the same (or \"compatible\") \nencoding; they will not be normalized.\n\n>> They have...\n\n>> Maybe I should remove EVERY @charset declaration in my CSS files?\n```\n\n-----\nOriginal comment by `p.jer...@gmail.com` on 24 Apr 2009 at 9:39"}}