{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/16649","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/16649/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/16649/comments","events_url":"https://api.github.com/repos/angular/angular/issues/16649/events","html_url":"https://github.com/angular/angular/issues/16649","id":227396210,"number":16649,"title":"Style bindings with gradient functions containing color functions as their colors get stripped out by the style sanitizer","user":{"login":"steveadoo32","id":8631926,"avatar_url":"https://avatars2.githubusercontent.com/u/8631926?v=4","gravatar_id":"","url":"https://api.github.com/users/steveadoo32","html_url":"https://github.com/steveadoo32","followers_url":"https://api.github.com/users/steveadoo32/followers","following_url":"https://api.github.com/users/steveadoo32/following{/other_user}","gists_url":"https://api.github.com/users/steveadoo32/gists{/gist_id}","starred_url":"https://api.github.com/users/steveadoo32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveadoo32/subscriptions","organizations_url":"https://api.github.com/users/steveadoo32/orgs","repos_url":"https://api.github.com/users/steveadoo32/repos","events_url":"https://api.github.com/users/steveadoo32/events{/privacy}","received_events_url":"https://api.github.com/users/steveadoo32/received_events","type":"User","site_admin":false},"labels":[{"id":375501288,"url":"https://api.github.com/repos/angular/angular/labels/comp:%20core%20&%20compiler","name":"comp: core & compiler","color":"c7def8","default":false},{"id":348933279,"url":"https://api.github.com/repos/angular/angular/labels/state:%20Need%20repro","name":"state: Need repro","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/83","html_url":"https://github.com/angular/angular/milestone/83","labels_url":"https://api.github.com/repos/angular/angular/milestones/83/labels","id":3143880,"number":83,"title":"needsTriage","description":"Milestone for all issues that haven't been triaged yet","creator":{"login":"ocombe","id":265378,"avatar_url":"https://avatars0.githubusercontent.com/u/265378?v=4","gravatar_id":"","url":"https://api.github.com/users/ocombe","html_url":"https://github.com/ocombe","followers_url":"https://api.github.com/users/ocombe/followers","following_url":"https://api.github.com/users/ocombe/following{/other_user}","gists_url":"https://api.github.com/users/ocombe/gists{/gist_id}","starred_url":"https://api.github.com/users/ocombe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocombe/subscriptions","organizations_url":"https://api.github.com/users/ocombe/orgs","repos_url":"https://api.github.com/users/ocombe/repos","events_url":"https://api.github.com/users/ocombe/events{/privacy}","received_events_url":"https://api.github.com/users/ocombe/received_events","type":"User","site_admin":false},"open_issues":392,"closed_issues":53,"state":"open","created_at":"2018-02-26T14:22:18Z","updated_at":"2018-03-08T09:50:50Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2017-05-09T15:00:22Z","updated_at":"2018-03-08T11:03:34Z","closed_at":null,"author_association":"NONE","body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\nA style binding with a linear-gradient with the colors as rgb or rgba functions will get stripped out by the style sanitizer.\r\n\r\n**Expected behavior**\r\nThey should not be stripped out.\r\n\r\n**Minimal reproduction of the problem with instructions**\r\nA style binding like this will get stripped out, \r\n```\r\n<div [style.background]=\"'linear-gradient(90deg, rgba(155, 155, 155, .5) 50%, rgba(155, 100, 155, .5) 50%)'\">\r\n</div>\r\n```\r\n\r\nPlunker: https://plnkr.co/edit/QouPum88elkomsSrNEld?p=preview\r\n\r\nIf I get a chance, I can submit a PR myself, but if anyone picks up this issue I think just changing the RegEx pattern for [FN_ARGS in style_sanitizer.ts](https://github.com/angular/angular/blob/master/packages/platform-browser/src/security/style_sanitizer.ts#L35) to `const FN_ARGS = '\\\\([-0-9.%, #a-zA-Z, ' + COLOR_FNS + ']+\\\\)';` should work.\r\n\r\n**Please tell us about your environment:**\r\n\r\n* **Angular version:** 2.0.X\r\nLatest angular\r\n\r\n* **Browser:** \r\nChrome, Edge, Firefox (havent tested others)\r\n \r\n* **Language:** \r\nTypescript"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/371455508","html_url":"https://github.com/angular/angular/issues/16649#issuecomment-371455508","issue_url":"https://api.github.com/repos/angular/angular/issues/16649","id":371455508,"user":{"login":"Mesya82","id":32867735,"avatar_url":"https://avatars2.githubusercontent.com/u/32867735?v=4","gravatar_id":"","url":"https://api.github.com/users/Mesya82","html_url":"https://github.com/Mesya82","followers_url":"https://api.github.com/users/Mesya82/followers","following_url":"https://api.github.com/users/Mesya82/following{/other_user}","gists_url":"https://api.github.com/users/Mesya82/gists{/gist_id}","starred_url":"https://api.github.com/users/Mesya82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mesya82/subscriptions","organizations_url":"https://api.github.com/users/Mesya82/orgs","repos_url":"https://api.github.com/users/Mesya82/repos","events_url":"https://api.github.com/users/Mesya82/events{/privacy}","received_events_url":"https://api.github.com/users/Mesya82/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T11:03:34Z","updated_at":"2018-03-08T11:03:34Z","author_association":"NONE","body":"Almost one year passed and bug like this is not still fixed?"}}
{"actor":{"display_login":"Mesya82"}}