Chapter 11. Gradients

image with no caption

The word “gradient” has many different meanings, but in CSS, a gradient is strictly defined as a gradual transition between a range of (at least two) colors. CSS gradients are a fairly recent development but have already been through a number of changes. They were originally proposed by the WebKit team in April 2008, modified from the syntax proposed for the canvas element in HTML 5. In August 2009, Mozilla announced that an implementation slightly modified from that of WebKit’s would be in the next version of Firefox (3.6).

Since then, however, the W3C’s CSS Working Group proposed a further modified syntax, and this syntax ...

Get The Book of CSS3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.