wentin / underlineJS

Pushing the boundary of browser typography rendering!
https://underlinejs.wentin.net
2.22k stars 80 forks source link

Fix baselineRatio calculation when break-word word-wrap #31

Closed adamschwartz closed 6 years ago

adamschwartz commented 9 years ago

When the inherited CSS (from elem or otherwise) has word-wrap: break-word, baselineRatio ends up being calculated incorrectly as the small and large “X” end up on different lines. This was recently reported to SmartUnderline where I implemented EagerIO/SmartUnderline#10, so I thought I’d contribute back. :smile:

adamschwartz commented 8 years ago

Hey @wentin, just wondering what’s the hold up on this.

adamschwartz commented 6 years ago

Bump.