Both boxes should render the same:

fooאbar

fooבאbar

fooגבאbar

fooדגבאbar

fooאbar

fooבאbar

fooגבאbar

fooדגבאbar