{"action":"created","issue":{"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/902","repository_url":"https://api.github.com/repos/jakubpawlowicz/clean-css","labels_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/902/labels{/name}","comments_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/902/comments","events_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/902/events","html_url":"https://github.com/jakubpawlowicz/clean-css/issues/902","id":210929294,"number":902,"title":"[attribute='value' i] case insensitivity is not correctly handled","user":{"login":"pixelastic","id":283419,"avatar_url":"https://avatars1.githubusercontent.com/u/283419?v=3","gravatar_id":"","url":"https://api.github.com/users/pixelastic","html_url":"https://github.com/pixelastic","followers_url":"https://api.github.com/users/pixelastic/followers","following_url":"https://api.github.com/users/pixelastic/following{/other_user}","gists_url":"https://api.github.com/users/pixelastic/gists{/gist_id}","starred_url":"https://api.github.com/users/pixelastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixelastic/subscriptions","organizations_url":"https://api.github.com/users/pixelastic/orgs","repos_url":"https://api.github.com/users/pixelastic/repos","events_url":"https://api.github.com/users/pixelastic/events{/privacy}","received_events_url":"https://api.github.com/users/pixelastic/received_events","type":"User","site_admin":false},"labels":[{"id":173406665,"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/labels/Bug","name":"Bug","color":"e11d21","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/milestones/58","html_url":"https://github.com/jakubpawlowicz/clean-css/milestone/58","labels_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/milestones/58/labels","id":2355692,"number":58,"title":"4.0.9","description":null,"creator":{"login":"jakubpawlowicz","id":24273,"avatar_url":"https://avatars0.githubusercontent.com/u/24273?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubpawlowicz","html_url":"https://github.com/jakubpawlowicz","followers_url":"https://api.github.com/users/jakubpawlowicz/followers","following_url":"https://api.github.com/users/jakubpawlowicz/following{/other_user}","gists_url":"https://api.github.com/users/jakubpawlowicz/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubpawlowicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubpawlowicz/subscriptions","organizations_url":"https://api.github.com/users/jakubpawlowicz/orgs","repos_url":"https://api.github.com/users/jakubpawlowicz/repos","events_url":"https://api.github.com/users/jakubpawlowicz/events{/privacy}","received_events_url":"https://api.github.com/users/jakubpawlowicz/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":4,"state":"closed","created_at":"2017-03-01T10:13:26Z","updated_at":"2017-03-15T10:08:17Z","due_on":null,"closed_at":"2017-03-15T10:08:17Z"},"comments":4,"created_at":"2017-02-28T23:03:24Z","updated_at":"2017-03-15T10:15:30Z","closed_at":"2017-03-15T10:08:03Z","body":"Seems like `clean-css` is too aggressively minifying attributes selectors that contains an ` i` to denote case-insensitivity.\r\n\r\n### Input\r\n```css\r\ninput[value=\"test\" i] { color:#FFFFFF; }\r\n```\r\n\r\n### Output\r\n```css\r\ninput[value=testi]{color:#fff}\r\n```\r\n\r\n### Expected output\r\n```css\r\ninput[value='test' i]{color:#fff}\r\n```\r\n\r\n### Version\r\nI'm using the commandline `cleancss` binary, installed through `yarn add global` on Ubuntu 16.04. The `cleancss` version is 4.0.7, with the default options.\r\n\r\n### More information\r\n\r\n[According to MDN](https://developer.mozilla.org/en/docs/Web/CSS/Attribute_selectors), one can use the `[attribute='value' i]` syntax to make the attribute check case-insensitive.\r\n![image](https://cloud.githubusercontent.com/assets/283419/23438449/2d5c8764-fe12-11e6-98a9-bd856ef2587c.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/comments/286698626","html_url":"https://github.com/jakubpawlowicz/clean-css/issues/902#issuecomment-286698626","issue_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/902","id":286698626,"user":{"login":"jakubpawlowicz","id":24273,"avatar_url":"https://avatars0.githubusercontent.com/u/24273?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubpawlowicz","html_url":"https://github.com/jakubpawlowicz","followers_url":"https://api.github.com/users/jakubpawlowicz/followers","following_url":"https://api.github.com/users/jakubpawlowicz/following{/other_user}","gists_url":"https://api.github.com/users/jakubpawlowicz/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubpawlowicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubpawlowicz/subscriptions","organizations_url":"https://api.github.com/users/jakubpawlowicz/orgs","repos_url":"https://api.github.com/users/jakubpawlowicz/repos","events_url":"https://api.github.com/users/jakubpawlowicz/events{/privacy}","received_events_url":"https://api.github.com/users/jakubpawlowicz/received_events","type":"User","site_admin":false},"created_at":"2017-03-15T10:15:30Z","updated_at":"2017-03-15T10:15:30Z","body":"It's fixed in 4.0.9 out in npm registry now."}}
{"actor":{"display_login":"jakubpawlowicz"}}