fidian / PrettyCSS

CSS beautifier, lint checker, validator
Other
34 stars 12 forks source link

HSL/HSLa colors produce warnings #39

Closed Markus00000 closed 8 years ago

Markus00000 commented 8 years ago

Hue is an angle between 0° and 360°. Alpha is between 0 and 1.

https://developer.mozilla.org/en/docs/Web/CSS/color_value#hsl() https://developer.mozilla.org/en/docs/Web/CSS/color_value#hsla()

Example:

#test {
    /* You are not allowed to mix percentages with non-percentage values (hsl() [css/prettycss] */
    background-color: hsl(100, 50%, 50%);
    /* You are not allowed to mix percentages with non-percentage values (hsla() [css/prettycss] */
    color: hsla(100, 50%, 50%, 1);
    /* The maximum value allowed is 255 (255) [css/prettycss] */
    color: hsl(300, 50%, 50%);

}
fidian commented 8 years ago

Thanks for finding and reporting this issue!

fidian commented 8 years ago

Released 0.3.11, which includes this fix.