shadow-dom: Fixed the styles of 'for' loop