keyframe-block-no-duplicate-selectors
Disallow duplicate selectors within keyframe blocks.
@keyframes foo { 0% {} 0% {} }/** ↑ * This duplicate selector */Use this rule to avoid keyframe declarations that a later block overrides. Declarations in blocks at the same offset cascade together.
This rule is case-insensitive.
This rule supports 1 message argument: the duplicate selector.
Options
Section titled “Options”{ "keyframe-block-no-duplicate-selectors": true}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 {} }