Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / last-child-display-change-inverse.html
bloba9f83e78739549698c792b464dacfed9cc28ca4d
1 <style>
2 .display-when-last-child { display: none; }
3 .display-when-last-child:last-child { display: block; }
4 </style>
5 <div id="container">
6 <div class="display-when-last-child">FAIL</div>
7 </div>
8 <script>
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();
15 </script>