5 testRunner
.dumpAsText();
8 var passed
= window
.getComputedStyle(document
.getElementsByTagName('p')[2]).color
=== "rgb(0, 0, 0)";
9 document
.getElementsByTagName('div')[0].innerText
= passed
? "PASS" : "FAIL";
13 p.foo + p { color: red; }
16 <body onload=
"test()">
17 <p class=
"foo">This text should be black.
</p>
18 <p>This text should be red.
</p>
19 <p>This text should be black.
</p>