Resize the viewport to see how the 6 multicoloured lines below wrap (if they are rendered at all).
It is expected that only the lines with textual content should wrap, but all lines should be rendered.

Wrapping should only happen if needed (i.e. when the words or borders would otherwise spill out of the green box)

Lorem ipsum dolor sit amet consectur in ripa enim
Lorem ipsum dolor sit amet in ripa enim dolorem