Skip to content

rgba()/hsl()/hsla() on CSSLint v0.8.1 #206

@hail2u

Description

@hail2u

Using rgba()/hsl()/hsla() in CSS code, CSSLint v0.8.1 warns like this:

Expected color or one of (inherit) but found 'rgba(0 , 0 , 0 , 0.5)'.

Tested on csslint.net with following code:

.rgb {
  color: rgb(0, 0, 0);
}

.rgba {
  color: rgba(0, 0, 0, 0.5);
}

.hsl {
  color: hsl(0, 0%, 0%);
}

.hsla {
  color: hsla(0, 0%, 0%, 0.5);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions