chromium/third_party/blink/web_tests/fast/selectors/empty-element-made-non-empty.html

<!DOCTYPE html>
<head>
<style>
    p { background-color: green; width: 100px; height: 100px; }
    p:empty { display: none; }
</style>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
window.onload = function() {
    document.getElementById('id').appendChild(document.createTextNode('TEST PASSED'));
};
</script>
</head>
<body>
<p id="id"></p>
</body>