I don't understand the comment. Could you be more explicit about why the toFixed() calls are necessary?  Is the issue that CSS does not support the E-14 notation and can't handle values that are too close to zero?   From reading the bug and reading this patch, I don't understand why this change fixes the bug.