CSS Linear Gradient to Create a Striped Element

Tell us what’s happening:

background: repeating- linear-gradient(
45deg,
yellow 0px,
yellow 40px,
black 40px,
black 80px
);
is anything wrong with the above solution? why should it be rejected.

Your code so far


<style>

div{
  border-radius: 20px;
  width: 70%;
  height: 400px;
  margin:  50 auto;
  background: repeating- linear-gradient(
    45deg,
    yellow 0px,
    yellow 40px,
    black 40px,
    black 80px
  );
}

</style>

<div></div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36.

Challenge: Use a CSS Linear Gradient to Create a Striped Element

Link to the challenge:

Hey @DANIEL4JESUS!
Why there space between repeating- and linear-gradient(