[Edited to better describe the problem]
I'm having difficulty applying various styles to :host in Angular 2. The simple plunker below demonstrates the problem. At first I thought that certain styles such as margin/padding weren't getting applied, but it seems that the issue is that the host element isn't behaving like a normal element. Notice that I've added a border and padding. The border looks really odd and the padding doesn't move the content inside the element at all (although it does appear to affect the way the border looks. This is the style I'm applying:
:host {padding:10px; border:1px solid red;}
The rendered code looks like this:
<sample-component _nghost-cxm-2="">
<div _ngcontent-cxm-2="">
<h3 _ngcontent-cxm-2="">Sample Component</h3>
</div>
</sample-component>
I can see in dev tools that the styles are being applied to the <sample-component> element, but this is what the page looks like rendered:
I would expect the border to wrap the content inside the component but it is behaving oddly. Here is a sample plunker: https://plnkr.co/edit/k7LJcmVlhJINmakBJAau?p=preview
What am I missing?

margin property. Padding is just working fine in chrome(latest version). try to addborder:1px solidthen change padding value and you'll see according behavior.