All browsers except Firefox return a number without a fraction part from the Canvas element's measureText()
method. FF returns values like 26.45682955697084
. Since the measurement is said to be in pixels, I am wondering why the fraction in FF?
So that my question is not shut down by overzealous moderators, please do not argue for or against the behavior! I simply want to know if there was a rationale for the behavior, and if so, what it was. Maybe there are nuances to rendered glyph measurements in the Canvas that I should be aware of?