stubbornella/csslint — Issue #207: CSS3 Colors Fallback Rule
Author: dmcass
Created: 2011-10-28 16:42:05+00:00
State: open

Name: CSS3 Colors
Rule: When using CSS3 colors, a fallback color should be provided for browsers which don't support them.
Affected Browsers: IE6, IE7, IE8
Source: http://caniuse.com/#css3-colors

Failing example:

```css
.rgba {
color: rgba(0, 0, 0, 0.5);
}
.hsl {
color: hsl(0, 0%, 0%);
}
.hsla {
color: hsla(0, 0%, 0%, 0.5);
}
```

Passing example:

```css
.rgba {
/* Fallback with RGB */
color: rgb(0, 0, 0);
color: rgba(0, 0, 0, 0.5);
}
.hsl {
/* Fallback with hex */
color: #000;
color: hsl(0, 0%, 0%);
}
.hsla {
/* Fallback with constant */
color: black;
color: hsla(0, 0%, 0%, 0.5);
}
```