function
repeating-linear-gradient() — CSS reference
Repeats the color-stop pattern along the gradient line. The period is the difference between the first and last stop positions; it is not a separate background tile. Very small periods can average visually.
Formal Syntax & Structure
css syntaxcss
repeating-linear-gradient(<linear-gradient arguments>)Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS image painting lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}body{background:white} #a{width:100px;height:80px;background-color:blue}#a{background-image:repeating-linear-gradient(90deg, red 0 10px, blue 10px 20px)}</style><body><div id="a" aria-hidden="true"></div><p>Decorative background sample.</p></body></html>