Gunnar Bittersmann: was macht background-color: #fed;?

Beitrag lesen

Hello out there!

Das hatten wir dereinst zwar schon einmal, aber ich möchte gerne noch einmal darauf hinweisen: ['#fed'] das ist _keine_ RGB-Farbangabe.
[…] (Siehe auch: CSS Level 2.1 Spec)

Na, was steht denn da?

“A <color> is either a keyword or a numerical RGB specification.”

#fed ist sicher kein keyword. Also ist es a numerical RGB specification.

“The format of an RGB value in hexadecimal notation is a '#' immediately followed by either three or six hexadecimal characters.”

Möchtest du wiederholen, '#fed' sei keine RGB-Farbangabe?

See ya up the road,
Gunnar

--
“Remember, in the end, nobody wins unless everybody wins.” (Bruce Springsteen)