CSSLint / csslint

Automated linting of Cascading Stylesheets
http://csslint.net
Other
4.77k stars 483 forks source link

False positive on rgba fallback rule: none and transparent #633

Open jsphstls opened 8 years ago

jsphstls commented 8 years ago
    background: none;
    background: rgba(0, 0, 0, 0.6);

or

    background: transparent;
    background: rgba(0, 0, 0, 0.6);

Both produce: WARNING: Fallback background-color (hex or RGB) should precede RGBA background-color. For older browsers that don't support RGBA, HSL, or HSLA, provide a fallback color. (fallback-colors) Browsers: IE6,IE7,IE8

If a browser cannot produce a semi-transparent background, you should also be able to remove the background altogether.