Calculate the baseline position as a ratio of the bounding text box.
Provides a single function, baselineRatio
. The function accepts one argument, the element whose baseline position you wish to calculate.
Example:
var ratio = baselineRatio(document.body);