Code'as
Code'as

Reputation: 71

Do all browsers interpret verbal colors equally?

I'm working on my project and detect that I start using a lot of verbal colour names as a background:whitesmoke; background:aliceblue, etc.

Is this way safe? Do all browsers know that whitesmoke is #F5F5F5 or aliceblue is #f0f8ff? Or should I switch it to HEX?

Upvotes: 0

Views: 96

Answers (1)

Alohci
Alohci

Reputation: 82986

The colour names are mapped to hex values in the CSS Color specification so any browser than follows the specification will do the same mapping.

The was a suggestion recently that the colour of NavajoWhite be adjusted so that it's not the rather unfortunate #FFDEAD, but it was rejected as not being backward web compatible.

The general feeling among those who know them, think that the colour names are largely silly and their use is discouraged, but they're standardized anyway and we're stuck with what they are.

Upvotes: 2

Related Questions