<style>
.shrink_to_fit {
  float: left;
  font-size: 10px;
  background-color: green;
  margin-left: 5px;
}

span {
  padding-right: 20px;
}
</style>
<div class=shrink_to_fit><span>Pass if no wrap</span></div>
<div class=shrink_to_fit><span>Pass if no wrap</span></div>
<div class=shrink_to_fit><span><span>Pass if no wrap</span></span></div>
<div class=shrink_to_fit><span>Pass if no wrap</span></div>
<div class=shrink_to_fit><span>Pass if no wrap</span></div>
<div class=shrink_to_fit><span><span style="padding-right: 0px">Pass if no wrap</span></span></div>
<div class=shrink_to_fit><span>Pass <span>if no wrap</span></span></div>
