Don't share style between two hosts with different attribute matching for :host([]) On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". PASS getComputedStyle(roots[1]).color is 'rgb(0, 128, 0)' PASS successfullyParsed is true TEST COMPLETE This text should be green