html - Hex color code multiple # -


while editing old coldfusion code found <td> has bgcolor property. value of ##89969e. copied code html file , found out color different in coldfusion.

now, noticed double #, removed 1 , color same. why color change when adding/removing #?

jsfiddle

as basic premise, additional hashes interpreted missing/erroneous value , replaced zero, ##89969e becomes #0089969e. note hex codes can long 8 digits following hash (if argb), the last 2 refer transparency

missing digits treated 0[...]. incorrect digit interpreted 0. example values #f0f0f0, f0f0f0, f0f0f, #fxfxfx , fxfxfx same.

when color strings longer 8 characters or shorter 4 characters used, things start strange.

however there lot of nuances - can find out more here, , entertaining results creates, have a little read here


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -