Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-pseudo/before-preceding-whitespace-dynamic.html
<!DOCTYPE html> <title>Removing an empty inline should not cause a space after ::before content to collapse</title> <link rel="help" href="https://drafts.csswg.org/css-pseudo/#generated-content"> <link rel="help" href="https://drafts.csswg.org/css-text/#white-space-rules"> <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>
/css/reference/pass_if_two_words.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Reftest Reference</title> <p>There should be a space between "two" and "words" below.</p> two words