{"action":"created","issue":{"url":"https://api.github.com/repos/sveltejs/svelte/issues/252","repository_url":"https://api.github.com/repos/sveltejs/svelte","labels_url":"https://api.github.com/repos/sveltejs/svelte/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/sveltejs/svelte/issues/252/comments","events_url":"https://api.github.com/repos/sveltejs/svelte/issues/252/events","html_url":"https://github.com/sveltejs/svelte/issues/252","id":201294615,"number":252,"title":"Doesn't like commented out CSS","user":{"login":"popovichN","id":2548109,"avatar_url":"https://avatars.githubusercontent.com/u/2548109?v=3","gravatar_id":"","url":"https://api.github.com/users/popovichN","html_url":"https://github.com/popovichN","followers_url":"https://api.github.com/users/popovichN/followers","following_url":"https://api.github.com/users/popovichN/following{/other_user}","gists_url":"https://api.github.com/users/popovichN/gists{/gist_id}","starred_url":"https://api.github.com/users/popovichN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/popovichN/subscriptions","organizations_url":"https://api.github.com/users/popovichN/orgs","repos_url":"https://api.github.com/users/popovichN/repos","events_url":"https://api.github.com/users/popovichN/events{/privacy}","received_events_url":"https://api.github.com/users/popovichN/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-17T14:07:14Z","updated_at":"2017-01-17T14:32:51Z","closed_at":null,"body":"It appears that commented out CSS causes problems ...\r\n\r\nI.e.\r\n\r\n/* table {\r\n}*/\r\n\r\ntd {\r\n\tfont-size: 14px;\r\n\tfont-family: Arial;\r\n}\r\n\r\nThe Arial/14px doesn't work unless I delete the table class."},"comment":{"url":"https://api.github.com/repos/sveltejs/svelte/issues/comments/273182220","html_url":"https://github.com/sveltejs/svelte/issues/252#issuecomment-273182220","issue_url":"https://api.github.com/repos/sveltejs/svelte/issues/252","id":273182220,"user":{"login":"Rich-Harris","id":1162160,"avatar_url":"https://avatars.githubusercontent.com/u/1162160?v=3","gravatar_id":"","url":"https://api.github.com/users/Rich-Harris","html_url":"https://github.com/Rich-Harris","followers_url":"https://api.github.com/users/Rich-Harris/followers","following_url":"https://api.github.com/users/Rich-Harris/following{/other_user}","gists_url":"https://api.github.com/users/Rich-Harris/gists{/gist_id}","starred_url":"https://api.github.com/users/Rich-Harris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rich-Harris/subscriptions","organizations_url":"https://api.github.com/users/Rich-Harris/orgs","repos_url":"https://api.github.com/users/Rich-Harris/repos","events_url":"https://api.github.com/users/Rich-Harris/events{/privacy}","received_events_url":"https://api.github.com/users/Rich-Harris/received_events","type":"User","site_admin":false},"created_at":"2017-01-17T14:32:51Z","updated_at":"2017-01-17T14:32:51Z","body":"Oh, interesting. Reproduced in the REPL [here](https://svelte.technology/repl/?version=1.6.3&gist=e80e409aadfb30dfb11a3cb2a86edca1) — looks like the comment delimiters are being mistaken for part of the selector, and being erroneously duplicated:\r\n\r\n<img width=\"391\" alt=\"screen shot 2017-01-17 at 9 25 52 am\" src=\"https://cloud.githubusercontent.com/assets/1162160/22024142/f88a5eae-dc96-11e6-93ac-b7f34c66df8a.png\">\r\n\r\nNot hugely surprising, since the CSS transformer is just a [big mess of regexes](https://github.com/sveltejs/svelte/blob/7cd86839521ad451f9a3af113a5537dcbfc471da/src/generators/shared/css/transform.js). Relevant XKCD:\r\n\r\n![mc2ws](https://cloud.githubusercontent.com/assets/1162160/22024178/192d6eee-dc97-11e6-9ce7-98dcedf268a1.png)\r\n\r\nMight be time to start investigating implementing a proper CSS parser, as per https://github.com/sveltejs/svelte/issues/245#issuecomment-271969175 discussion. In the meantime, workarounds are a) removing comments, or b) [putting them on a single line](https://svelte.technology/repl/?version=1.6.3&gist=6f83d82fe4c02216e54ffbfd0d81fb71)."}}
{"actor":{"display_login":"Rich-Harris"}}