{"action":"created","issue":{"url":"https://api.github.com/repos/marcj/css-element-queries/issues/79","labels_url":"https://api.github.com/repos/marcj/css-element-queries/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/marcj/css-element-queries/issues/79/comments","events_url":"https://api.github.com/repos/marcj/css-element-queries/issues/79/events","html_url":"https://github.com/marcj/css-element-queries/pull/79","id":121831904,"number":79,"title":"Fix bug when css rules are in peculiar order","user":{"login":"wickning1","id":2790417,"avatar_url":"https://avatars.githubusercontent.com/u/2790417?v=3","gravatar_id":"","url":"https://api.github.com/users/wickning1","html_url":"https://github.com/wickning1","followers_url":"https://api.github.com/users/wickning1/followers","following_url":"https://api.github.com/users/wickning1/following{/other_user}","gists_url":"https://api.github.com/users/wickning1/gists{/gist_id}","starred_url":"https://api.github.com/users/wickning1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wickning1/subscriptions","organizations_url":"https://api.github.com/users/wickning1/orgs","repos_url":"https://api.github.com/users/wickning1/repos","events_url":"https://api.github.com/users/wickning1/events{/privacy}","received_events_url":"https://api.github.com/users/wickning1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-12T04:04:33Z","updated_at":"2015-12-16T22:03:12Z","closed_at":"2015-12-16T22:02:54Z","pull_request":{"url":"https://api.github.com/repos/marcj/css-element-queries/pulls/79","html_url":"https://github.com/marcj/css-element-queries/pull/79","diff_url":"https://github.com/marcj/css-element-queries/pull/79.diff","patch_url":"https://github.com/marcj/css-element-queries/pull/79.patch"},"body":"One of my programmers fixed this, not me, so apologies for any inaccuracy in my explanation.\r\n\r\nSome versions of IE will reorganize css selectors into a specific order for the cssRules styleSheet property.  The rewritten rule looks something like '[min-width~=\"400px\"]div.myclassname'. This catches the elementqueries regex by surprise and failure occurs. Now, IE does this and it's weird, but it's perfectly valid CSS and any user could write CSS like this if they want to and you could reproduce the problem in Firefox or Chrome.\r\n\r\nWe fixed it up to hopefully cover all valid CSS cases. Once this is done, we found we could move the cssText property to the end of the list because we don't have a problem with what IE provides any more. This improves initial load performance in IE somewhat.\r\n\r\nThere is another pull request that directly conflicts with this. I didn't analyze the difference but we have been testing this thoroughly for two months in all browsers and it's solid."},"comment":{"url":"https://api.github.com/repos/marcj/css-element-queries/issues/comments/165266878","html_url":"https://github.com/marcj/css-element-queries/pull/79#issuecomment-165266878","issue_url":"https://api.github.com/repos/marcj/css-element-queries/issues/79","id":165266878,"user":{"login":"marcj","id":450980,"avatar_url":"https://avatars.githubusercontent.com/u/450980?v=3","gravatar_id":"","url":"https://api.github.com/users/marcj","html_url":"https://github.com/marcj","followers_url":"https://api.github.com/users/marcj/followers","following_url":"https://api.github.com/users/marcj/following{/other_user}","gists_url":"https://api.github.com/users/marcj/gists{/gist_id}","starred_url":"https://api.github.com/users/marcj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcj/subscriptions","organizations_url":"https://api.github.com/users/marcj/orgs","repos_url":"https://api.github.com/users/marcj/repos","events_url":"https://api.github.com/users/marcj/events{/privacy}","received_events_url":"https://api.github.com/users/marcj/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T22:03:12Z","updated_at":"2015-12-16T22:03:12Z","body":"Very nice, thanks @wickning1!"}}