Using repeating-linear-gradient

A
B
C
D

A: background: linear-gradient(to bottom, hsla(0, 0%, 100%, 0.5) 50%, black 0) top / 100% 20%; Using Linear Gradient and the "/ 100% 20%" to repeat

B: background-image: repeating-linear-gradient(-45deg, transparent 0 20px, black 20px 40px); }

C: background-image: repeating-linear-gradient( black 0 20px, transparent 20px 40px);

D: background-image: repeating-linear-gradient(red 0 7px, white 8px 15px, blue 16px 23px);