RE: [css] Proposal: making Shorthand Hex Colors even shorter (16 grayscale shades)

I think it predates IE5 by quite a bit, but any-who...

My point was that there are multiple ways to interpret less than 3 hex digits (as well as 4 and 5), so I think it's a bit foolish to introduce an additional incompatibility for an arguably ambiguous representation.

-----Original Message-----
From: Tab Atkins Jr. [mailto:jackalmage@gmail.com] 
Sent: Thursday, December 01, 2011 10:54 AM
To: Brian Manthos
Cc: David Chambers; Chris Nager; www-style@w3.org
Subject: Re: [css] Proposal: making Shorthand Hex Colors even shorter (16 grayscale shades)

On Thu, Dec 1, 2011 at 10:46 AM, Brian Manthos <brianman@microsoft.com> wrote:
> In IE5, “#12” was treated as the same as “#120” IIRC.  Cases like “#1234”
> also have interesting treatment.
>
> So, compatibility is one concern.

Is this only in HTML color attributes like <body bgcolor>?  Those are
required now to use a different parsing algorithm than CSS anyway (I
fixed WebKit to stop treating it like CSS).

IE5 compat is probably the farthest thing from an average author's
mind, as well.  ^_^

~TJ

Received on Thursday, 1 December 2011 19:15:52 UTC