I'm stuck here, I thought I added a fallback but I'm missing something and it's not obvious to me

Tell us what’s happening:

Your code so far

:root {
  --red-color: red;

.red-box {
  background: var(--red-color,red);
  height: 200px;
<div class="red-box"></div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36.

Challenge: Improve Compatibility with Browser Fallbacks

Link to the challenge:

I don’t believe you’re supposed to change anything other than to add the fallback line.

1 Like

Isn’t the word red my fallback?
background: var(–red-color, red);

I believe that is the wrong type of fallback. The lesson wants you to only do the fallback on a preceeding line.

1 Like

@JeremyLT is correct. You should only have added one line. You should not have changed any of the existing lines of code.