2 .display-when-last-child { display: none; }
3 .display-when-last-child:last-child { display: block; }
6 <div class=
"display-when-last-child">FAIL
</div>
9 var test
= document
.createElement('div');
10 container
.appendChild(test
);
11 if (container
.innerText
.indexOf('FAIL') < 0)
12 test
.innerText
= 'PASS';
13 if (window
.testRunner
)
14 testRunner
.dumpAsText();