Improve Compatibility with Browser Fallbacks:CSS

Tell us what’s happening:

Can’t pass the test

Your code so far


<style>
:root {
  --red-color: red;
}
.red-box {
  background:red;
  background: red;
  background: var(--red-color);
  width: 200px;
  height: 200px;
}

<div class="red box"></div>

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS armv7l 12105.100.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.144 Safari/537.36.

Challenge: Improve Compatibility with Browser Fallbacks

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/basic-css/improve-compatibility-with-browser-fallbacks

Your class name toi write “red box” in your div and “red-box” in your css file. It is not the same thing.

you have declared background: red; twice