Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<html>
<meta charset="utf-8">
<title>CSS Text — NARROW NO-BREAK SPACE and replaced element</title>
<meta name=assert content="There is no soft wrap opportunity between replaced elements and adjacent NARROW NO-BREAK SPACE">
<link rel=match href="reference/line-breaking-replaced-002-ref.html">
<link rel=author title="Florian Rivoal" href="https://florian.rivoal.net">
<style>
.test {
width: 50px;
}
.red {
position: absolute;
color: red;
z-index: -1;
padding-left: 60px;
padding-top: 40px;
}
</style>
<p>Test passes if there is no red.
<div class=red>&#8239;XX</div>
<div class=test><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkaGD4DwACiQGBU29HsgAAAABJRU5ErkJggg==" width=50 height=100>&#8239;<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkaGD4DwACiQGBU29HsgAAAABJRU5ErkJggg==" width=50 height=100></div>