{"action":"opened","issue":{"url":"https://api.github.com/repos/dart-lang/csslib/issues/20","labels_url":"https://api.github.com/repos/dart-lang/csslib/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/csslib/issues/20/comments","events_url":"https://api.github.com/repos/dart-lang/csslib/issues/20/events","html_url":"https://github.com/dart-lang/csslib/issues/20","id":121854184,"number":20,"title":"pretty print does not render media query block correctly","user":{"login":"alextekartik","id":1721046,"avatar_url":"https://avatars.githubusercontent.com/u/1721046?v=3","gravatar_id":"","url":"https://api.github.com/users/alextekartik","html_url":"https://github.com/alextekartik","followers_url":"https://api.github.com/users/alextekartik/followers","following_url":"https://api.github.com/users/alextekartik/following{/other_user}","gists_url":"https://api.github.com/users/alextekartik/gists{/gist_id}","starred_url":"https://api.github.com/users/alextekartik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alextekartik/subscriptions","organizations_url":"https://api.github.com/users/alextekartik/orgs","repos_url":"https://api.github.com/users/alextekartik/repos","events_url":"https://api.github.com/users/alextekartik/events{/privacy}","received_events_url":"https://api.github.com/users/alextekartik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-12T13:10:34Z","updated_at":"2015-12-12T13:10:34Z","closed_at":null,"body":"Pretty print mode seems to ignore `@media` query blocks\r\n\r\nThe following:\r\n\r\n    .good { color: red; }\r\n    @media screen { .better { color: blue; } }\r\n    .best { color: green }\r\n\r\n\r\nshould generate:\r\n\r\n    .good {\r\n      color: #f00;\r\n    }\r\n    @media screen {\r\n      .better {\r\n        color: #00f;\r\n      }\r\n    }\r\n    .best {\r\n      color: #008000;\r\n    }\r\n\r\nalthough for now it generates:\r\n\r\n    .good {\r\n      color: #f00;\r\n    } @media screen {\r\n    .better {\r\n      color: #00f;\r\n    }\r\n    }\r\n    .best {\r\n      color: #008000;\r\n    }\r\n\r\nUnit test [here](https://github.com/tekartik/yacht.dart/blob/c207e0f6c5bc1750b0258fccb1d25cfd852a1d86/test/csslib_utils_test.dart#L189-L218)"}}