Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 316 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 316 Bytes

baseline-ratio

Calculate the baseline position as a ratio of the bounding text box.

Usage

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);