| test2 > :empty + ::before { |
| test3 > :empty + * > ::before { |
| test4 > :not(:empty)::before { |
| test5 > :not(:empty) + ::before { |
| test6 > :not(:empty) + * > ::before { |
| window.addEventListener('load', function() { |
| scratch = document.documentElement.offsetTop; |
| var children = document.querySelectorAll('child'); |
| for (var i = 0; i < children.length; ++i) |
| children[i].parentNode.removeChild(children[i]); |
| var children = document.querySelectorAll('notempty'); |
| for (var i = 0; i < children.length; ++i) |
| children[i].appendChild(document.createTextNode(" ")); |
| <p>This tests pseudo elements are styled properly. If the test succeed, you should see 6 lines with "Pass!" over a green background.</p> |
| <div><child></child></div> |
| <div><child></child></div> |
| <div><child></child></div> |