fixing web component styles for firefox/safari