Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-pseudo/before-preceding-whitespace-dynamic.html - WPT Dashboard Interop Dashboard
<!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>