<style>
div {
  font-family: ahem;
  width: 300px;
  overflow: hidden;
  white-space: pre-wrap;
  color: green;
}

span {
  background-color: yellow;
}
</style>
<div>should-not-scroll<span>                                              </span></div>
