Scroll to the right and you'll see the background is truncated:
DEMOCode:div {
width: 300px;
overflow: auto;
}
p {
background: green;
}
<div>
<p>ThisIsSomeText.ThisIsSomeText.ThisIsSomeText.ThisIsSomeText.ThisIsSomeText.ThisIsSomeText.ThisIsSomeText.ThisIsSomeText.ThisIsSomeText.ThisIsSomeText.</p>
</div>
Why does it happen? What's the solution?
