<style>
div {
 height: 50px;
 font-family: Monospace;
 font-size: 20px;
}
img {
  width: 10px;
  height: 10px;
  background-color: green;
}
</style>
<div><span>PASS if green box is below this text<br><img></span></div>
<div><span><span>PASS if blue box is below this text<br><img style="background-color: blue;"></span></span></div>
<div><span>PASS if magenta box is below this text<br><img style="background-color: magenta;">



</span></div>
