Improve Compatibility with Browser Fallbacks.,

Improve Compatibility with Browser Fallbacks.,

Tell us what’s happening:
can someone explain?

Your .red-box rule should include a fallback with the background set to red immediately before the existing background declaration.

Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:


This means that if you do want to provide a browser fallback, it’s as easy as providing another more widely supported value immediately before your declaration.


Not all browsers support variables ( So you need to make sure there’s a fallback for the browsers that don’t understand variables. How would you make a red background without a variable?


you just need to add
background: red;
background: var(–red-color);

This is only need to add because if browser can not recognize the variable i.e." background: var(–red-color);“than browser set to the main style i.e.” background: red;"


It is not accepting this.


@karemahm have you finally gotten it cos i have not still gotten it