{"action":"created","issue":{"url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/216","labels_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/216/comments","events_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/216/events","html_url":"https://github.com/webcomponents/webcomponentsjs/issues/216","id":58919277,"number":216,"title":"path.js: media query not supported in @import rules","user":{"login":"vicb","id":248818,"avatar_url":"https://avatars.githubusercontent.com/u/248818?v=3","gravatar_id":"","url":"https://api.github.com/users/vicb","html_url":"https://github.com/vicb","followers_url":"https://api.github.com/users/vicb/followers","following_url":"https://api.github.com/users/vicb/following{/other_user}","gists_url":"https://api.github.com/users/vicb/gists{/gist_id}","starred_url":"https://api.github.com/users/vicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicb/subscriptions","organizations_url":"https://api.github.com/users/vicb/orgs","repos_url":"https://api.github.com/users/vicb/repos","events_url":"https://api.github.com/users/vicb/events{/privacy}","received_events_url":"https://api.github.com/users/vicb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webcomponents/webcomponentsjs/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-25T15:35:34Z","updated_at":"2015-02-26T10:00:21Z","closed_at":null,"body":"@import rules could be [media dependent](http://www.w3.org/TR/CSS21/cascade.html#at-import):\r\n`@import url(\"bluish.css\") projection, tv;`\r\n\r\nHowever the regexp in [path.js](https://github.com/webcomponents/webcomponentsjs/blob/4c5f21610c6cea02c74beaa3a25cd8075807ce31/src/HTMLImports/path.js#L13) is `/(@import[\\s]+(?!url\\())([^;]*)(;)/g`\r\n\r\nThe media query will be matched as part of the url (ie anything before \";\")\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/comments/76151191","html_url":"https://github.com/webcomponents/webcomponentsjs/issues/216#issuecomment-76151191","issue_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/216","id":76151191,"user":{"login":"vicb","id":248818,"avatar_url":"https://avatars.githubusercontent.com/u/248818?v=3","gravatar_id":"","url":"https://api.github.com/users/vicb","html_url":"https://github.com/vicb","followers_url":"https://api.github.com/users/vicb/followers","following_url":"https://api.github.com/users/vicb/following{/other_user}","gists_url":"https://api.github.com/users/vicb/gists{/gist_id}","starred_url":"https://api.github.com/users/vicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicb/subscriptions","organizations_url":"https://api.github.com/users/vicb/orgs","repos_url":"https://api.github.com/users/vicb/repos","events_url":"https://api.github.com/users/vicb/events{/privacy}","received_events_url":"https://api.github.com/users/vicb/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T10:00:21Z","updated_at":"2015-02-26T10:00:21Z","body":"One RegExp that could work is `(@import[\\s]+(?!url\\\\())[\\'\"]([^\\'\"]*)[\\'\"](.*;)`\r\n\r\nI can't find how to test this, I would have sent a PR otherwise."}}