Modified the starter example for litelement. Looks like compound types has to be serialized to take effect inside the component. This is due to limitation of setAttribute. So sorry, webcomponent.