Monday, January 14, 2008

IE Made my day gray .. or was it grey?

For some reason I feel like this isn't the first time I have run into this issue, but I can't find any posts about and can't remember any specifics, so I will hope I am not doomed to repeat myself....

Name the color that is between white and black? Got it? Now how do you spell it?

Gray or Grey?

According to Wikipedia, the word "gray" can be spelled either way stemming from variations on British English and American. Thats fine, I could care less.

My problem is with Internet Explorer.

According to W3Schools, there are large number of named HTML color codes which are supported by all "major" browsers and a select few which are "really standard" to the point where they are supported by CSS and HTML validation checks. Examples of the "really standard" ones are Blue, Red, Green, Gray, etc... Non-standard (but commonly supported) colors include Cyan, DarkOliveGreen, LightGrey, etc....

The problem is that W3Schools says that Grey and Gray should be equivelant along with LightGrey and LightGray (in the commonly supported realm). If a browser wasn't going to support one set or the other, you would expect that it would only use the E version or the A or both .... but not IE!

Check out the following picture which shows the problem I just encountered:

(click to see larger)

Firefox (gotta love it) supports all 4 colors and displays them the same way that W3Schools says it should. Internet Explorer on the other hand chooses to display Gray and LightGrey but not the others (notice the letter difference).

Thats just strange to me. Why pick one of each? Why not be consistent? While this isn't quite as confusing as Ned Batchelder's Color Parsing Brainteaser, but its still pretty darn crazy.

3 comments:

Josh Schramm said...

Great find. You should send that to the Daily WTF.

Benjamin P Lee said...

posted.

now we get to wait and see if they use it.

Benjamin P Lee said...

I don't think they went for it ....