{"action":"opened","number":79,"pull_request":{"url":"https://api.github.com/repos/marcj/css-element-queries/pulls/79","id":53467833,"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","issue_url":"https://api.github.com/repos/marcj/css-element-queries/issues/79","number":79,"state":"open","locked":false,"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},"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.","created_at":"2015-12-12T04:04:33Z","updated_at":"2015-12-12T04:04:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/marcj/css-element-queries/pulls/79/commits","review_comments_url":"https://api.github.com/repos/marcj/css-element-queries/pulls/79/comments","review_comment_url":"https://api.github.com/repos/marcj/css-element-queries/pulls/comments{/number}","comments_url":"https://api.github.com/repos/marcj/css-element-queries/issues/79/comments","statuses_url":"https://api.github.com/repos/marcj/css-element-queries/statuses/833dee08c0cca4156a11e3a2d8176c403c4ea15f","head":{"label":"txstate-etc:selectororderfix","ref":"selectororderfix","sha":"833dee08c0cca4156a11e3a2d8176c403c4ea15f","user":{"login":"txstate-etc","id":10200290,"avatar_url":"https://avatars.githubusercontent.com/u/10200290?v=3","gravatar_id":"","url":"https://api.github.com/users/txstate-etc","html_url":"https://github.com/txstate-etc","followers_url":"https://api.github.com/users/txstate-etc/followers","following_url":"https://api.github.com/users/txstate-etc/following{/other_user}","gists_url":"https://api.github.com/users/txstate-etc/gists{/gist_id}","starred_url":"https://api.github.com/users/txstate-etc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/txstate-etc/subscriptions","organizations_url":"https://api.github.com/users/txstate-etc/orgs","repos_url":"https://api.github.com/users/txstate-etc/repos","events_url":"https://api.github.com/users/txstate-etc/events{/privacy}","received_events_url":"https://api.github.com/users/txstate-etc/received_events","type":"Organization","site_admin":false},"repo":{"id":47861312,"name":"css-element-queries","full_name":"txstate-etc/css-element-queries","owner":{"login":"txstate-etc","id":10200290,"avatar_url":"https://avatars.githubusercontent.com/u/10200290?v=3","gravatar_id":"","url":"https://api.github.com/users/txstate-etc","html_url":"https://github.com/txstate-etc","followers_url":"https://api.github.com/users/txstate-etc/followers","following_url":"https://api.github.com/users/txstate-etc/following{/other_user}","gists_url":"https://api.github.com/users/txstate-etc/gists{/gist_id}","starred_url":"https://api.github.com/users/txstate-etc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/txstate-etc/subscriptions","organizations_url":"https://api.github.com/users/txstate-etc/orgs","repos_url":"https://api.github.com/users/txstate-etc/repos","events_url":"https://api.github.com/users/txstate-etc/events{/privacy}","received_events_url":"https://api.github.com/users/txstate-etc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/txstate-etc/css-element-queries","description":"CSS-Element-Queries Polyfill. proof-of-concept for high-speed element dimension/media queries in valid css.","fork":true,"url":"https://api.github.com/repos/txstate-etc/css-element-queries","forks_url":"https://api.github.com/repos/txstate-etc/css-element-queries/forks","keys_url":"https://api.github.com/repos/txstate-etc/css-element-queries/keys{/key_id}","collaborators_url":"https://api.github.com/repos/txstate-etc/css-element-queries/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/txstate-etc/css-element-queries/teams","hooks_url":"https://api.github.com/repos/txstate-etc/css-element-queries/hooks","issue_events_url":"https://api.github.com/repos/txstate-etc/css-element-queries/issues/events{/number}","events_url":"https://api.github.com/repos/txstate-etc/css-element-queries/events","assignees_url":"https://api.github.com/repos/txstate-etc/css-element-queries/assignees{/user}","branches_url":"https://api.github.com/repos/txstate-etc/css-element-queries/branches{/branch}","tags_url":"https://api.github.com/repos/txstate-etc/css-element-queries/tags","blobs_url":"https://api.github.com/repos/txstate-etc/css-element-queries/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/txstate-etc/css-element-queries/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/txstate-etc/css-element-queries/git/refs{/sha}","trees_url":"https://api.github.com/repos/txstate-etc/css-element-queries/git/trees{/sha}","statuses_url":"https://api.github.com/repos/txstate-etc/css-element-queries/statuses/{sha}","languages_url":"https://api.github.com/repos/txstate-etc/css-element-queries/languages","stargazers_url":"https://api.github.com/repos/txstate-etc/css-element-queries/stargazers","contributors_url":"https://api.github.com/repos/txstate-etc/css-element-queries/contributors","subscribers_url":"https://api.github.com/repos/txstate-etc/css-element-queries/subscribers","subscription_url":"https://api.github.com/repos/txstate-etc/css-element-queries/subscription","commits_url":"https://api.github.com/repos/txstate-etc/css-element-queries/commits{/sha}","git_commits_url":"https://api.github.com/repos/txstate-etc/css-element-queries/git/commits{/sha}","comments_url":"https://api.github.com/repos/txstate-etc/css-element-queries/comments{/number}","issue_comment_url":"https://api.github.com/repos/txstate-etc/css-element-queries/issues/comments{/number}","contents_url":"https://api.github.com/repos/txstate-etc/css-element-queries/contents/{+path}","compare_url":"https://api.github.com/repos/txstate-etc/css-element-queries/compare/{base}...{head}","merges_url":"https://api.github.com/repos/txstate-etc/css-element-queries/merges","archive_url":"https://api.github.com/repos/txstate-etc/css-element-queries/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/txstate-etc/css-element-queries/downloads","issues_url":"https://api.github.com/repos/txstate-etc/css-element-queries/issues{/number}","pulls_url":"https://api.github.com/repos/txstate-etc/css-element-queries/pulls{/number}","milestones_url":"https://api.github.com/repos/txstate-etc/css-element-queries/milestones{/number}","notifications_url":"https://api.github.com/repos/txstate-etc/css-element-queries/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/txstate-etc/css-element-queries/labels{/name}","releases_url":"https://api.github.com/repos/txstate-etc/css-element-queries/releases{/id}","created_at":"2015-12-12T02:40:56Z","updated_at":"2015-12-12T02:40:58Z","pushed_at":"2015-12-12T03:53:21Z","git_url":"git://github.com/txstate-etc/css-element-queries.git","ssh_url":"git@github.com:txstate-etc/css-element-queries.git","clone_url":"https://github.com/txstate-etc/css-element-queries.git","svn_url":"https://github.com/txstate-etc/css-element-queries","homepage":"http://marcj.github.io/css-element-queries/","size":1822,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"marcj:master","ref":"master","sha":"9eac5a6604c56a81b600f9f73f7cde74372a0462","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},"repo":{"id":10425992,"name":"css-element-queries","full_name":"marcj/css-element-queries","owner":{"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},"private":false,"html_url":"https://github.com/marcj/css-element-queries","description":"CSS-Element-Queries Polyfill. proof-of-concept for high-speed element dimension/media queries in valid css.","fork":false,"url":"https://api.github.com/repos/marcj/css-element-queries","forks_url":"https://api.github.com/repos/marcj/css-element-queries/forks","keys_url":"https://api.github.com/repos/marcj/css-element-queries/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcj/css-element-queries/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcj/css-element-queries/teams","hooks_url":"https://api.github.com/repos/marcj/css-element-queries/hooks","issue_events_url":"https://api.github.com/repos/marcj/css-element-queries/issues/events{/number}","events_url":"https://api.github.com/repos/marcj/css-element-queries/events","assignees_url":"https://api.github.com/repos/marcj/css-element-queries/assignees{/user}","branches_url":"https://api.github.com/repos/marcj/css-element-queries/branches{/branch}","tags_url":"https://api.github.com/repos/marcj/css-element-queries/tags","blobs_url":"https://api.github.com/repos/marcj/css-element-queries/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcj/css-element-queries/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcj/css-element-queries/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcj/css-element-queries/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcj/css-element-queries/statuses/{sha}","languages_url":"https://api.github.com/repos/marcj/css-element-queries/languages","stargazers_url":"https://api.github.com/repos/marcj/css-element-queries/stargazers","contributors_url":"https://api.github.com/repos/marcj/css-element-queries/contributors","subscribers_url":"https://api.github.com/repos/marcj/css-element-queries/subscribers","subscription_url":"https://api.github.com/repos/marcj/css-element-queries/subscription","commits_url":"https://api.github.com/repos/marcj/css-element-queries/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcj/css-element-queries/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcj/css-element-queries/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcj/css-element-queries/issues/comments{/number}","contents_url":"https://api.github.com/repos/marcj/css-element-queries/contents/{+path}","compare_url":"https://api.github.com/repos/marcj/css-element-queries/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcj/css-element-queries/merges","archive_url":"https://api.github.com/repos/marcj/css-element-queries/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcj/css-element-queries/downloads","issues_url":"https://api.github.com/repos/marcj/css-element-queries/issues{/number}","pulls_url":"https://api.github.com/repos/marcj/css-element-queries/pulls{/number}","milestones_url":"https://api.github.com/repos/marcj/css-element-queries/milestones{/number}","notifications_url":"https://api.github.com/repos/marcj/css-element-queries/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcj/css-element-queries/labels{/name}","releases_url":"https://api.github.com/repos/marcj/css-element-queries/releases{/id}","created_at":"2013-06-01T17:48:50Z","updated_at":"2015-12-11T16:34:21Z","pushed_at":"2015-12-12T03:45:21Z","git_url":"git://github.com/marcj/css-element-queries.git","ssh_url":"git@github.com:marcj/css-element-queries.git","clone_url":"https://github.com/marcj/css-element-queries.git","svn_url":"https://github.com/marcj/css-element-queries","homepage":"http://marcj.github.io/css-element-queries/","size":2269,"stargazers_count":985,"watchers_count":985,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":91,"mirror_url":null,"open_issues_count":26,"forks":91,"open_issues":26,"watchers":985,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/marcj/css-element-queries/pulls/79"},"html":{"href":"https://github.com/marcj/css-element-queries/pull/79"},"issue":{"href":"https://api.github.com/repos/marcj/css-element-queries/issues/79"},"comments":{"href":"https://api.github.com/repos/marcj/css-element-queries/issues/79/comments"},"review_comments":{"href":"https://api.github.com/repos/marcj/css-element-queries/pulls/79/comments"},"review_comment":{"href":"https://api.github.com/repos/marcj/css-element-queries/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/marcj/css-element-queries/pulls/79/commits"},"statuses":{"href":"https://api.github.com/repos/marcj/css-element-queries/statuses/833dee08c0cca4156a11e3a2d8176c403c4ea15f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":8,"deletions":6,"changed_files":1}}