Skip to content

Files

Latest commit

 

History

History
44 lines (31 loc) · 1 KB

declaration-block-no-duplicate-custom-properties.md

File metadata and controls

44 lines (31 loc) · 1 KB

Pattern: Duplicate custom property in declaration block

Issue: -

Description

Disallow duplicate custom properties within declaration blocks.

a { --custom-property: pink; --custom-property: orange; }
/** ↑                        ↑
 * These duplicated custom properties */

Examples

The following patterns are considered violations:

a { --custom-property: pink; --custom-property: orange; }
a { --custom-property: pink; background: orange; --custom-property: orange }

The following patterns are not considered violations:

a { --custom-property: pink; }
a { --custom-property: pink; --cUstOm-prOpErtY: orange; }

Further Reading