Browser Fallbacks Question

Tell us what’s happening:
Hi, I just want to ask for the browser fallback can we also use

background-color: red

instead of

background: red

 **Your code so far**

:root {
  --red-color: red;
.red-box {
background: red;
  background: var(--red-color);
  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/93.0.4577.82 Safari/537.36

Challenge: Improve Compatibility with Browser Fallbacks

Link to the challenge:

short answer: yes.

long ish answer: since background selector is a shorthand for setting several background properties at once, background-color included, therefore it is completely fine to use background-color instead in this instance.

Reading on background shorthand:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.