Hacker News new | ask | show | jobs
by TazeTSchnitzel 3369 days ago
> Scientific notation isn't […] supported in all browsers.

This has tripped me up many a time when I've created CSS colour strings (mostly for <canvas> use) by concatenating Strings and Numbers in JavaScript. When a Number gets small enough, it ends up in scientific notation, and the CSS parser rejects it.