Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>Removing an empty inline should not cause a space after ::before content to collapse</title>
<link rel="match" href="../reference/pass_if_two_words.html">
<style>
div::before { content: "two" }
</style>
<p>There should be a space between "two" and "words" below.</p>
<div> <span id="rm"></span><span>words</span></div>
<script>
rm.offsetTop;
rm.remove();
rm.offsetTop;
</script>