The problem with gradients is that they are a syntactic nightmare. The gradient spec writers and browser makers changed their mind not once but twice. Thus we have three sets of syntax, and all three occasionally crop up even today. I call these old, middle, and new syntax.

I still haven't totally grokked the new syntax where linear gradients start with "to" or an angle.

Direct Link →