Unknown error in css gradient

Tell us what’s happening:
Describe your issue in detail here.

  **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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1 Safari/605.1.15.

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

Link to the challenge:

i get this error: “SyntaxError: Invalid regular expression: invalid group specifier name”

It looks like there is a bug with Safari support right now. You can use Firefox, Chrome, or Edge until this is fixed.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.