{"action":"created","issue":{"url":"https://api.github.com/repos/jxnblk/css-statistics/issues/12","labels_url":"https://api.github.com/repos/jxnblk/css-statistics/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/jxnblk/css-statistics/issues/12/comments","events_url":"https://api.github.com/repos/jxnblk/css-statistics/issues/12/events","html_url":"https://github.com/jxnblk/css-statistics/pull/12","id":55683621,"number":12,"title":"Keeping the decimal place for media queries","user":{"login":"johnotander","id":1424573,"avatar_url":"https://avatars.githubusercontent.com/u/1424573?v=3","gravatar_id":"","url":"https://api.github.com/users/johnotander","html_url":"https://github.com/johnotander","followers_url":"https://api.github.com/users/johnotander/followers","following_url":"https://api.github.com/users/johnotander/following{/other_user}","gists_url":"https://api.github.com/users/johnotander/gists{/gist_id}","starred_url":"https://api.github.com/users/johnotander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnotander/subscriptions","organizations_url":"https://api.github.com/users/johnotander/orgs","repos_url":"https://api.github.com/users/johnotander/repos","events_url":"https://api.github.com/users/johnotander/events{/privacy}","received_events_url":"https://api.github.com/users/johnotander/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-27T22:24:53Z","updated_at":"2015-01-29T17:53:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jxnblk/css-statistics/pulls/12","html_url":"https://github.com/jxnblk/css-statistics/pull/12","diff_url":"https://github.com/jxnblk/css-statistics/pull/12.diff","patch_url":"https://github.com/jxnblk/css-statistics/pull/12.patch"},"body":"Related to mrmrs/cssstats#76\r\n\r\nI've added unit tests for media query parsing to replicate the issue referenced\r\nabove. Then, when attempting to get the test to pass I dove into how the\r\nmedia queries were being handled. The current implementation doesn't hold\r\nreference to the raw value after camel casing the key, so I don't believe\r\nit's possible to fix this issue without changing the returned object.\r\n\r\nSo, I figured we could use this as the starting point to discuss the best\r\nway to approach this. The first idea of mine is to slightly change the byMedia\r\nkey in the declarations object to be:\r\n\r\n```javascript\r\nbyMedia: {\r\n  '(minWidth:12345em)': {\r\n    raw: '(min-width:12.345em)',\r\n    declarations: [\r\n      // ...\r\n    ]\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/jxnblk/css-statistics/issues/comments/72071288","html_url":"https://github.com/jxnblk/css-statistics/pull/12#issuecomment-72071288","issue_url":"https://api.github.com/repos/jxnblk/css-statistics/issues/12","id":72071288,"user":{"login":"jxnblk","id":3451712,"avatar_url":"https://avatars.githubusercontent.com/u/3451712?v=3","gravatar_id":"","url":"https://api.github.com/users/jxnblk","html_url":"https://github.com/jxnblk","followers_url":"https://api.github.com/users/jxnblk/followers","following_url":"https://api.github.com/users/jxnblk/following{/other_user}","gists_url":"https://api.github.com/users/jxnblk/gists{/gist_id}","starred_url":"https://api.github.com/users/jxnblk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jxnblk/subscriptions","organizations_url":"https://api.github.com/users/jxnblk/orgs","repos_url":"https://api.github.com/users/jxnblk/repos","events_url":"https://api.github.com/users/jxnblk/events{/privacy}","received_events_url":"https://api.github.com/users/jxnblk/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T17:53:32Z","updated_at":"2015-01-29T17:53:32Z","body":"Yeah, I kinda wanna think about this some more, and how it works with mrmrs/cssstats. Also btw, the current app doesn't use Angular, just Express."}}