各自有 repeating- 變體實現重複模式。
-webkit-gradient(linear, left top, left bottom,
from(#FD0), color-stop(0.5, #F80), to(#C30))
linear-gradient([ | to ]?, )
/* 方向關鍵字 */
to top | to bottom | to left | to right
to top left | to top right | to bottom left | to bottom right
/* 角度 */
45deg | -90deg | 0.5turn
background: -webkit-linear-gradient(top, #FD0, #C30);
background: -moz-linear-gradient(top, #FD0, #C30);
background: -o-linear-gradient(top, #FD0, #C30);
background: linear-gradient(to bottom, #FD0, #C30); /* 標準寫法最後 */
background: linear-gradient(top, #eff6fb, #d3e4f3 68%);
background: linear-gradient(left,
#FF0000, #FFA500 13%, #FFFF00 26%,
#0000FF 39%, #008000 52%, #4B0082 65%, #EE82EE 78%);
/* 關鍵字 */
background: linear-gradient(top left, #eff6fb 10%, #d3e4f3 68%);
/* 角度:0deg=左→右, 90deg=下→上, 180deg=右→左, 270deg=上→下 */
background: linear-gradient(45deg, #eff6fb 10%, #d3e4f3 68%);

background:
linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1)),
url(pattern.png);
radial-gradient([ || ]? [ at ]?, )
/* 形狀 */ circle | ellipse
/* 尺寸 */ closest-side | farthest-corner | contain | cover | |
/* 位置 */ center | top left | 50% 50% | 100px 100px
/* 預設橢圓、中心、farthest-corner */
background: radial-gradient(red, yellow, #1E90FF);
/* 指定色標位置 */
background: radial-gradient(red 5%, yellow 25%, #1E90FF 50%);
/* 形狀與位置 */
background: radial-gradient(bottom left, circle, red, yellow, #1E90FF);
background: radial-gradient(bottom left, ellipse, red, yellow, #1E90FF);

closest-side:最近邊緣farthest-corner (預設):最遠角落contain = closest-side, cover = farthest-corner/* 重複徑向:同心圓環 */
background: repeating-radial-gradient(black, black 5px, white 5px, white 10px);
/* 重複線性:斜條紋 */
background: repeating-linear-gradient(-45deg, red, red 5px, white 5px, white 10px);
background-image 而非 background 避免重置其他屬性background-size、background-position 精確控制