Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / first-child-display-change-inverse.html
blobb652fd0ba8371563adc154ba315b8c5fabaa03ef
1 <style>
2 .display-when-first-child { display: none; }
3 .display-when-first-child:first-child { display: block; }
4 </style>
5 <div class="display-when-first-child">FAIL</div>
6 <script>
7 var test = document.createElement('div');
8 document.body.insertBefore(test, document.body.firstChild);
9 if (document.body.innerText.indexOf('FAIL') < 0)
10 test.innerText = 'PASS';
11 if (window.testRunner)
12 testRunner.dumpAsText();
13 </script>