{"action":"created","issue":{"url":"https://api.github.com/repos/tmpvar/jsdom/issues/1374","repository_url":"https://api.github.com/repos/tmpvar/jsdom","labels_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1374/labels{/name}","comments_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1374/comments","events_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1374/events","html_url":"https://github.com/tmpvar/jsdom/issues/1374","id":131471898,"number":1374,"title":"Can't parse nested @styles","user":{"login":"jamietre","id":573056,"avatar_url":"https://avatars.githubusercontent.com/u/573056?v=3","gravatar_id":"","url":"https://api.github.com/users/jamietre","html_url":"https://github.com/jamietre","followers_url":"https://api.github.com/users/jamietre/followers","following_url":"https://api.github.com/users/jamietre/following{/other_user}","gists_url":"https://api.github.com/users/jamietre/gists{/gist_id}","starred_url":"https://api.github.com/users/jamietre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamietre/subscriptions","organizations_url":"https://api.github.com/users/jamietre/orgs","repos_url":"https://api.github.com/users/jamietre/repos","events_url":"https://api.github.com/users/jamietre/events{/privacy}","received_events_url":"https://api.github.com/users/jamietre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-02-04T20:57:07Z","updated_at":"2016-02-05T17:32:38Z","closed_at":null,"body":"I realize this is not actually a real CSS rule, but this is a convention used by PDFReactor (a 3rd party tool we use) and browsers don't have a problem with it, but jsdom throws an error when trying to parse this.\r\n\r\n    @page {\r\n        @top-center {\r\n            content: element(headerIdentifier);\r\n        }\r\n    } \r\n\r\n    Error: Unexpected } (line 5, char 1)\r\n    Error: Could not load link: \"http://localhost:5000/report-server/styles/styles2.css\"\r\n        at ..\\report-server\\node_modules\\jsdom\\lib\\jsdom\\browser\\resource-loader.js:36:21\r\n\r\nBasically, it seems like nested at-rules can't be parsed. I suspect there's nothing technically \"wrong\" with the way jsdom/cssstyle is handling this, since there are not actually valid nested @rules, but I can't think of an advantage to failing to parse a style sheet which browsers are able to parse.\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tmpvar/jsdom/issues/comments/180456643","html_url":"https://github.com/tmpvar/jsdom/issues/1374#issuecomment-180456643","issue_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1374","id":180456643,"user":{"login":"jamietre","id":573056,"avatar_url":"https://avatars.githubusercontent.com/u/573056?v=3","gravatar_id":"","url":"https://api.github.com/users/jamietre","html_url":"https://github.com/jamietre","followers_url":"https://api.github.com/users/jamietre/followers","following_url":"https://api.github.com/users/jamietre/following{/other_user}","gists_url":"https://api.github.com/users/jamietre/gists{/gist_id}","starred_url":"https://api.github.com/users/jamietre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamietre/subscriptions","organizations_url":"https://api.github.com/users/jamietre/orgs","repos_url":"https://api.github.com/users/jamietre/repos","events_url":"https://api.github.com/users/jamietre/events{/privacy}","received_events_url":"https://api.github.com/users/jamietre/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T17:32:38Z","updated_at":"2016-02-05T17:32:38Z","body":"It shis a problem, btw? Not an MIT license\r\n\r\nhttp://polymer.github.io/LICENSE.txt"}}