You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a linear-gradient as the background in some divs. On older browsers, that's not supported, so I'm using background-color to provide an acceptable fallback. clean-css is removing the background-color, probably because it wouldn't be used on a newer browser, but it needs to be there to support the older ones.
header {
background-color: #a7cfd9; /* Old browsers / / This line removed by clean-css */
background: linear-gradient(#7ba5b4, #a7cfd9);
top: 50px;
height: 75px;
width: 100%;
position: absolute;
}
The text was updated successfully, but these errors were encountered:
A longhand value should not be overriden by a shorthand with
a function value, e.g.
```css
div {
background-color: red;
background: linear-gradient(red, blue);
}
```
I'm using a linear-gradient as the background in some divs. On older browsers, that's not supported, so I'm using background-color to provide an acceptable fallback. clean-css is removing the background-color, probably because it wouldn't be used on a newer browser, but it needs to be there to support the older ones.
header {
background-color: #a7cfd9; /* Old browsers / / This line removed by clean-css */
background: linear-gradient(#7ba5b4, #a7cfd9);
top: 50px;
height: 75px;
width: 100%;
position: absolute;
}
The text was updated successfully, but these errors were encountered: