Improve Compatibility with Browser Fallbacks hwo to clear this

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 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36.

Link to the challenge:

how to soLVE THIS problem i am not able to clear this one


You need to add the fall back before the background var, so it should look like this.

background: red;
background: var(–red-color);


1 Like