Back to the index.
This is the detailed desktop compatibility table for all sorts of gradients. It’s split into new and middle syntax.
Last major update on 21 November 2014.
This table tests if the browser support either the W3C-approved new syntax, or the -webkit-
-prefixed middle syntax. Other prefixes do not count.
First, who uses middle or new syntax?
Method or property | Internet Explorer | Firefox | Safari | Chrome | Opera | Yandex | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 and lower | 8 | 9 | 10 | 11 | 33 Win | 33 Mac | 32 Linux | 7 | 38 Win | 38 Mac | 37 Linux | 26 Win | 26 Mac | 14.10 Win | 14.10 Mac | |
New syntax
|
No | Yes | Yes | Yes | Yes | Yes | Yes | |||||||||
background: linear-gradient(90deg,red 10%,yellow 30%,green 60%); background: radial-gradient(circle closest-corner at 60% bottom,red 10%,yellow 30%,green 60%); |
||||||||||||||||
Middle syntax
-webkit-
|
No | No | Yes | Yes | Yes | Yes | ||||||||||
background: -webkit-linear-gradient(0deg,red 10%,yellow 30%,green 60%); background: -webkit-radial-gradient(60% bottom,circle closest-corner,red 10%,yellow 30%,green 60%); Note: what I judge here is compatibility with the |
Then the actual compatibility. A browser gets a Yes if it supports one of the two tested syntaxes.
Method or property | Internet Explorer | Firefox | Safari | Chrome | Opera | Yandex | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 and lower | 8 | 9 | 10 | 11 | 33 Win | 33 Mac | 32 Linux | 7 | 38 Win | 38 Mac | 37 Linux | 26 Win | 26 Mac | 14.10 Win | 14.10 Mac | |
Defining the colors of any gradient, in either syntax | No | bug | Yes | Yes | Yes | Yes | Yes | |||||||||
background: linear-gradient(90deg,red 10%,yellow 30%,green 60%); background: radial-gradient(circle closest-corner at 60% bottom,red 10%,yellow 30%,green 60%);
|
||||||||||||||||
Repeating a gradient | No | Yes | Yes | Yes | Yes | Yes | Yes | |||||||||
background: repeating-linear-gradient(90deg,red 10%,yellow 30%,green 60%,red 80%); background: repeating-radial-gradient(circle closest-corner at 60% bottom,red 10%,yellow 30%,green 60%,red 80%); |
||||||||||||||||
Angular definition of the direction of a linear gradient | No | Yes | Yes | Yes | Yes | Yes | Yes | |||||||||
background: linear-gradient(90deg,red 10%,yellow 30%,green 60%); |
||||||||||||||||
Keywords for determining the direction of a linear gradient | No | Yes | Yes | Yes | Yes | Yes | Yes | |||||||||
background: linear-gradient(to right,red 10%,yellow 30%,green 60%); |
||||||||||||||||
Method or property | Internet Explorer | Firefox | Safari | Chrome | Opera | Yandex | ||||||||||
7 and lower | 8 | 9 | 10 | 11 | 33 Win | 33 Mac | 32 Linux | 7 | 38 Win | 38 Mac | 37 Linux | 26 Win | 26 Mac | 14.10 Win | 14.10 Mac | |
Position of the center of a radial gradient | No | Yes | Yes | Yes | Yes | Yes | Yes | |||||||||
background: radial-gradient(circle closest-corner at 60% bottom,red 10%,yellow 30%,green 60%); |
||||||||||||||||
Keywords for determining where the radial gradient ends | No | Yes | Yes | Yes | Yes | Yes | Yes | |||||||||
background: radial-gradient(circle closest-corner at 60% bottom,red 10%,yellow 30%,green 60%); |
||||||||||||||||
Length units for determining where the radial gradient ends | No | Yes | Yes | Yes | Yes | Yes | Yes | |||||||||
background: radial-gradient(5em 75% at 60% bottom,red 10%,yellow 30%,green 60%); Note: do not mix with shape keywords. |
||||||||||||||||
Shape of radial gradient | No | Yes | Yes | Yes | Yes | Yes | Yes | |||||||||
background: radial-gradient(circle closest-corner at 60% bottom,red 10%,yellow 30%,green 60%); Note: do not mix with size in length units. |
||||||||||||||||
Incompatibility in radial gradient syntax | No | Yes | No | No | No | No | No | |||||||||
background: radial-gradient(ellipse 5em 75% at 60% bottom,red 10%,yellow 30%,green 60%); Is mixing shape keywords and size allowed in lengths? |
Desktop browser test array 2.0.3; November 2014