<!DOCTYPE html>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
<style>
*:empty:first-line { background: red; }
</style>
<div>
Tests that the :empty pseudo-class doesn't cause a crash when the empty status changes during parsing.
<button autofocus></button>
</div>