{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/6412","labels_url":"https://api.github.com/repos/angular/angular/issues/6412/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/6412/comments","events_url":"https://api.github.com/repos/angular/angular/issues/6412/events","html_url":"https://github.com/angular/angular/issues/6412","id":126055996,"number":6412,"title":"ViewEncapsulation.Emulated styles do not apply to children injected with <ng-content>","user":{"login":"stringham","id":1206952,"avatar_url":"https://avatars.githubusercontent.com/u/1206952?v=3","gravatar_id":"","url":"https://api.github.com/users/stringham","html_url":"https://github.com/stringham","followers_url":"https://api.github.com/users/stringham/followers","following_url":"https://api.github.com/users/stringham/following{/other_user}","gists_url":"https://api.github.com/users/stringham/gists{/gist_id}","starred_url":"https://api.github.com/users/stringham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stringham/subscriptions","organizations_url":"https://api.github.com/users/stringham/orgs","repos_url":"https://api.github.com/users/stringham/repos","events_url":"https://api.github.com/users/stringham/events{/privacy}","received_events_url":"https://api.github.com/users/stringham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-11T22:51:39Z","updated_at":"2016-01-13T17:08:51Z","closed_at":null,"body":"If I have a list component with the following template:\r\n```html\r\n<style>\r\n    li {\r\n        line-height: 40px;\r\n        color: #fff;\r\n        border-bottom: 1px solid rgba(255, 255, 255, 0.15);\r\n        cursor: pointer;\r\n    }\r\n</style>\r\n\r\n<ul>\r\n    <li>item 1</li>\r\n    <ng-content></ng-content>\r\n</ul>\r\n```\r\n\r\nand I use the component in another template\r\n\r\n```html\r\n<list-component>\r\n    <li>item 2</li>\r\n    <li>item 3</li>\r\n</list-component>\r\n```\r\n\r\nthe two list items defined in the second template don't get the styles defined in the list-component's template."},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/171366286","html_url":"https://github.com/angular/angular/issues/6412#issuecomment-171366286","issue_url":"https://api.github.com/repos/angular/angular/issues/6412","id":171366286,"user":{"login":"stringham","id":1206952,"avatar_url":"https://avatars.githubusercontent.com/u/1206952?v=3","gravatar_id":"","url":"https://api.github.com/users/stringham","html_url":"https://github.com/stringham","followers_url":"https://api.github.com/users/stringham/followers","following_url":"https://api.github.com/users/stringham/following{/other_user}","gists_url":"https://api.github.com/users/stringham/gists{/gist_id}","starred_url":"https://api.github.com/users/stringham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stringham/subscriptions","organizations_url":"https://api.github.com/users/stringham/orgs","repos_url":"https://api.github.com/users/stringham/repos","events_url":"https://api.github.com/users/stringham/events{/privacy}","received_events_url":"https://api.github.com/users/stringham/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T17:08:51Z","updated_at":"2016-01-13T17:08:51Z","body":"Sorry, I was using `<ng-content></ng-content>`, just didn't get that in my example in the previous comment. \r\n\r\nIt looks like I can style `<ng-content></ng-content>` with `:host`, and that may be a bug. I'll try using `::content`."}}