{"action":"opened","issue":{"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/1056","repository_url":"https://api.github.com/repos/jakubpawlowicz/clean-css","labels_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/1056/labels{/name}","comments_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/1056/comments","events_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/1056/events","html_url":"https://github.com/jakubpawlowicz/clean-css/issues/1056","id":395506572,"node_id":"MDU6SXNzdWUzOTU1MDY1NzI=","number":1056,"title":"Identifier with starting underscore considered incorrect","user":{"login":"oranmor","id":1910786,"node_id":"MDQ6VXNlcjE5MTA3ODY=","avatar_url":"https://avatars1.githubusercontent.com/u/1910786?v=4","gravatar_id":"","url":"https://api.github.com/users/oranmor","html_url":"https://github.com/oranmor","followers_url":"https://api.github.com/users/oranmor/followers","following_url":"https://api.github.com/users/oranmor/following{/other_user}","gists_url":"https://api.github.com/users/oranmor/gists{/gist_id}","starred_url":"https://api.github.com/users/oranmor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oranmor/subscriptions","organizations_url":"https://api.github.com/users/oranmor/orgs","repos_url":"https://api.github.com/users/oranmor/repos","events_url":"https://api.github.com/users/oranmor/events{/privacy}","received_events_url":"https://api.github.com/users/oranmor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-03T09:34:36Z","updated_at":"2019-01-03T09:34:36Z","closed_at":null,"author_association":"NONE","body":"### Environment\r\n\r\nOnline tool\r\n\r\n### Configuration options\r\n\r\nLevel 2, merge semantically, remove unused @ at rules, restructure rules\r\n\r\n### Input CSS\r\n\r\n```css\r\n@keyframes _loading {\r\n  from { transform: rotate(0deg); }\r\n  to { transform: rotate(360deg); }\r\n}\r\n\r\n.load {\r\n  animation: _loading 8s steps(8) infinite;\r\n}\r\n```\r\n\r\n### Actual output CSS\r\n\r\nEmpty\r\n\r\n### Expected output CSS\r\n\r\n```css\r\n@keyframes _loading{from{transform:rotate(0)}to{transform:rotate(360deg)}}.load{animation:8s steps(8) infinite _loading}\r\n```\r\n### Explanation\r\n\r\nIf we change animation name from `_loading` to `loading`, then everything works as expected. So it seems that the animation identifier with starting underscore is considered incorrect. However, it is correct according to [MDN web docs](https://developer.mozilla.org/en-US/docs/Web/CSS/custom-ident#Examples).\r\nAs far as I understand, problem can be solved by fixing `identifierRegex` in lib/optimizer/validator.js"}}
{"actor":{"display_login":"oranmor"}}