Specify if getComputedTextLength()
should return a float or an integer
#25
Labels
getComputedTextLength()
should return a float or an integer
#25
The
getComputedTextLength
method (and by proxy, thegetSubStringLength
method) only specify returning a number in user units. Current implementations differ: Chrome and WebKit return integers, and Firefox and IE/Edge return floats.It would be better to return a float; depending on viewport dimensions and transformations, an integer can be very inaccurate.
The text was updated successfully, but these errors were encountered: