4 ms·
How many people use the names as opposed to hex values? I'd rather just use the hex value and ensure it's rendered even if the browser hasn't implemented the l
by shogun21 11y ago
How many people use the names as opposed to hex values?
I'd rather just use the hex value and ensure it's rendered even if the browser hasn't implemented the latest version of the spec.
- wavefunction 11y agoI use the hex-values/rgba because what does 'papaya whip' even mean? Plus not everyone on the internet are literate in English so RGBA or hex-RGB is far more internationalized.
- thaumasiotes 11y ago> “I'm not a native English speaker. Imagine my reaction the first time I saw the ‘gainsboro’ color or ‘papaya whip,’” Daniel Glazman, co-chairman of the CSS Working Group, told Ars. Speaking as a native English speaker, I don't see how this could possibly be worse for non-native speakers. They have no idea, and neither do we.
- caf 11y agoIf you were writing an application where you wanted to allow your user to choose colours - say for tagging items or customising an interface - it might make sense to present them with a list of named colours rather than make them choose from a colour wheel (or, heaven forfend, directly enter a 24 bit RGB number). It would likely be best to define your own list of named colours, for localisation reasons if nothing else, but for the initial version of a feature I could see using the CSS colour names directly.