Skip to content

No validation when rgb/rgba/hsl colors are used #325

@acherkashin

Description

@acherkashin

I use the following stylelint configuration

module.exports = {
  plugins: ['stylelint-declaration-strict-value'],
  files: ['**/*.css'],
  rules: {
    'scale-unlimited/declaration-strict-value': [
      ['color', 'background-color', 'font-size', 'font-weight', 'font-family', 'border-color'],
      {
        ignoreValues: ['currentColor', 'unset', 'inherit', 'initial', 'transparent'],
      },
    ],
  },
};

Everything works fine, for hex colors, font-weight, font-size and so on.

But when I use rgb/rgba/hsl functions to set up color, I don't see any validations.

image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions