Skip to content

Files

Latest commit

 

History

History
51 lines (36 loc) · 983 Bytes

keyframe-block-no-duplicate-selectors.md

File metadata and controls

51 lines (36 loc) · 983 Bytes

Pattern: Duplicate selector within keyframe block

Issue: -

Description

Disallows duplicate selectors within keyframe blocks.

@keyframes foo { 0% {} 0% {} }
/**                    ↑
 *                     This duplicate selector */

This rule is case-insensitive.

Examples

The following patterns are considered problems:

@keyframes foo { 0% {} 0% {} }
@keyframes foo { from {} from {} }
@keyframes foo { from {} FROM {} }

The following patterns are not considered problems:

@keyframes foo { 0% {} 100% {} }
@keyframes foo { from {} to {} }

Further Reading