So, I recently ran into a particular problem in IE10 (sigh). It looks like if you use display: inline-block; in combination with overflow: hidden; IE10 ruined your line height. I tried to fix it using vertical-align: middle; but it only almost fixes the problem in IE10, and then introduces the main problems in other browsers.
The only code needed to run the error is:
CSS
.bug { display:inline-block; overflow:hidden; }
HTML:
<p>This should <span class="bug">be buggy</span> in IE10</p>
I created a JSFiddle to illustrate the error - http://jsfiddle.net/laustdeleuran/5pWMQ/ .
Here is also a screenshot of the error - http://cl.ly/image/2U1g3i0b0Y2y
Has anyone seen / fixed this problem before?
EDIT:
This is not an IE10 bug (but this is another case of lazy testing on my behalf). Actually Chrome (webkit) is doing it wrong - stack overflow site/questions/942194 / ....
source share