Repeating linear and radial gradients are exactly the same as their non repeating counterparts, except that there is an optional first parameter that is the angle to repeat the gradient. There is an issue though older browsers that only recognize older and not current syntax may use the
-moz-
or
-webkit-
prefixes and they interpret this angle differently. Consider the following simple repeating gradient:
| repeating-linear-gradient(0deg,rgb(255,0,0),rgb(100,0,0) 20px, rgb(255,0,0) 40px); |
This is going to look different in different browsers. Try it in Mozilla, Webkit (Chrome/Safari/Opera current) and Opera (presto).