{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/angular/issues/843","labels_url":"https://api.github.com/repos/angular/angular/issues/843/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/843/comments","events_url":"https://api.github.com/repos/angular/angular/issues/843/events","html_url":"https://github.com/angular/angular/issues/843","id":59463313,"number":843,"title":"Create a CssAdapter (like DomAdapter)","user":{"login":"vicb","id":248818,"avatar_url":"https://avatars.githubusercontent.com/u/248818?v=3","gravatar_id":"","url":"https://api.github.com/users/vicb","html_url":"https://github.com/vicb","followers_url":"https://api.github.com/users/vicb/followers","following_url":"https://api.github.com/users/vicb/following{/other_user}","gists_url":"https://api.github.com/users/vicb/gists{/gist_id}","starred_url":"https://api.github.com/users/vicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicb/subscriptions","organizations_url":"https://api.github.com/users/vicb/orgs","repos_url":"https://api.github.com/users/vicb/repos","events_url":"https://api.github.com/users/vicb/events{/privacy}","received_events_url":"https://api.github.com/users/vicb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular/labels/comp:%20core/view/compiler","name":"comp: core/view/compiler","color":"c7def8"},{"url":"https://api.github.com/repos/angular/angular/labels/effort1:%20easy%20(hour)","name":"effort1: easy (hour)","color":"bfe5bf"},{"url":"https://api.github.com/repos/angular/angular/labels/P4:%20nice%20to%20have","name":"P4: nice to have","color":"fef2c0"},{"url":"https://api.github.com/repos/angular/angular/labels/state:%20Follow%20Up","name":"state: Follow Up","color":"006b75"},{"url":"https://api.github.com/repos/angular/angular/labels/type:%20refactor","name":"type: refactor","color":"EEEEEE"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-02T10:29:44Z","updated_at":"2015-08-24T23:16:25Z","closed_at":"2015-08-24T23:16:25Z","body":"Some methods of the current DomAdapter deal with style:\r\n```\r\n  isPageRule(rule) {\r\n    throw _abstract();\r\n  }\r\n  isStyleRule(rule) {\r\n    throw _abstract();\r\n  }\r\n  isMediaRule(rule) {\r\n    throw _abstract();\r\n  }\r\n  isKeyframesRule(rule) {\r\n    throw _abstract();\r\n  }\r\n```\r\n\r\nWe should probably extract them to a `CssAdapter` and use:\r\n- something like [this css parser](https://github.com/reworkcss/css) in JS,\r\n- [ccslib](https://pub.dartlang.org/packages/csslib) in Dart\r\n\r\n"}}