(the original question is https://stackoverflow.com/questions/37512815/bug-with-roboto-font-and-break-word-on-desktop-chrome )
A bug was detected on desktop versions:
- beta chrome version 51
- Chrome 53 (canary)
The point is the strange behavior of the string when combining lowercase letters rt .
A line feed automatically occurs as in the figure below -
Here is an example code showing a bug:
.container { word-break: break-word; } .line { padding: 5px; } .inline-block { display: inline-block; padding: 7px 10px; background-color: #efefef; border: 1px solid silver; overflow: auto; white-space: pre-wrap; font-family: Roboto; } <link href='https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic' rel='stylesheet' type='text/css'> <div class="container"> <div class="line"> <div class="inline-block">rt</div> </div> <div class="line"> <div class="inline-block">rt rt rt</div> </div> <div class="line"> <div class="inline-block">morty</div> </div> <div class="line"> <div class="inline-block">mo rty</div> </div> <div class="line"> <div class="inline-block">mo Rty</div> </div> <div class="line"> <div class="inline-block">mo rTy</div> </div> </div> There is no bag in chrome for tablet and smartphone.
How to remove the bug using these styles css ?
PS Explain, please, why such a bug actually has a place to be?
