-
This page lists errata from the book (hopefully not too much!), changes to the specifications since publication, and brand new features.
Categories
The latest preview release of IE10 has the most up to date linear-gradient and radial-gradient syntaxes, and has removed prefixes from them both.
The syntax for radial-gradient has changed dramatically since publication of the book. The new syntax looks like this:
div { background: radial-gradient(10em circle at right,#000,#FFF); }
The first value sets the size of the gradient; it can be a unit value, or a keyword such as closest-side. The next value is the shape; a radial gradient can be either a circle or an ellipse. Next is an optional position for the centre of the gradient; in this example, the gradient will start on the centre of the right side of the box. The color-stop values remain as before.
There’s a fuller explanation of the new radial-gradient syntax at Broken-Links.com.
All of the support tables and examples in Chapter 11 have been updated to reflect these new developments.
— 26 June, 2012