<style>
@keyframes A { 0% { color: red; } }
a:before, b:before { animation-name: A; }
</style>
<a href="#"><b></b></a>

<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>
Test passes if it doesn't crash.
