Skip to content

Rule Change: Allow relative color syntax for <color> #235

@amxmln

Description

@amxmln

What rule do you want to change?

css/no-invalid-properties

What change do you want to make?

Generate fewer warnings

How do you think the change should be implemented?

A new default behavior

Example code

background-color: rgb(from currentColor r g b / 0.1)

What does the rule currently do for this code?

This code currently gets flagged as incorrect, as from is not recognised as a valid property.

What will the rule do after it's changed?

The rule should allow for relative color syntax.

Participation

  • I am willing to submit a pull request to implement this change.

Additional comments

Please feel free to recategorise if I didn’t sort this into the right section, it just seemed to make the most sense. I’m surprised the issue wasn’t reported yet, however, I couldn’t find any references to it in other issues. If this is already known, I apologise.

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

Evaluating

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions