<style>
div {
  font-family: Ahem;
  font-size: 20px;
  width: 400px;
  line-height: 1;
}
span {
  -webkit-box-decoration-break: clone;
  padding-right: 50px;
  border-right: 1px solid green;
}
</style>
<div><span>PASS if there's gap between this text and the green border end</span></div>
