fixed compatibility with safari when white-space nowrap is specified

In Safari if white-space: nowrap is specified on the element the truncation via dotdotdot doesn't work.