Skip to content

Bug: no-invalid-properties false positive for relative colors #246

@SwetaTanwar

Description

@SwetaTanwar

Environment

main branch

Which language are you using?

stylesheet

What did you do?

Configuration
/* eslint css/no-invalid-properties: "error" */
a {
   background: hwb(from hsl(0 100% 50%) h 30% b); // Error
   color: hsl(from #123456 h s calc(l + 20)) // Error
   color: hsla(from #123456 h s calc(l + 20)) // Error
   color: hwb(from green h w b / 0.5); // Error
   color: lch(from green l c h / 0.5); // Error
}

What did you expect to happen?

All are valid syntax, there should be no error.

What actually happened?

Image

Link to Minimal Reproducible Example

Provided above

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

I noticed this while working on #235, If the team aligns I'll gladly send a PR for fix.

Metadata

Metadata

Assignees

Labels

acceptedThere is consensus among the team that this change meets the criteria for inclusionbugSomething isn't working

Type

No type

Projects

Status

Blocked

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions