Browser Fallbacks 1

Tell us what’s happening:
i did this but it was still rejected

background: red; /red/

Your code so far

:root {
  --red-color: red;
.red-box {
  background: red; /*red*/

  background: var(--red-color);
  height: 200px;
<div class="red-box"></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: Improve Compatibility with Browser Fallbacks

Link to the challenge:


I don’t know why there some commented text here

Don’t you need to use - - red-color anti color there? I think this is the task, isn’t it?

it seems the comment is making the tests fail, remove it

this challenge is about adding a browser fallback in case the browser is too old to support variables

1 Like