跳转到内容

noDuplicateSelectorsKeyframeBlock (since v1.8.0)

Diagnostic Category: lint/nursery/noDuplicateSelectorsKeyframeBlock

Sources:

Disallow duplicate selectors within keyframe blocks.

@keyframes foo { from {} from {} }
code-block.css:1:26 lint/nursery/noDuplicateSelectorsKeyframeBlock ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

   The duplicate keyframe selector is overwritten by later one.
  
  > 1 │ @keyframes foo { from {} from {} }
                            ^^^^
    2 │ 
  
   Consider using a different percentage value or keyword to avoid duplication
  
@keyframes foo { from {} FROM {} }
code-block.css:1:26 lint/nursery/noDuplicateSelectorsKeyframeBlock ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

   The duplicate keyframe selector is overwritten by later one.
  
  > 1 │ @keyframes foo { from {} FROM {} }
                            ^^^^
    2 │ 
  
   Consider using a different percentage value or keyword to avoid duplication
  
@keyframes foo { 0% {} 0% {} }
code-block.css:1:24 lint/nursery/noDuplicateSelectorsKeyframeBlock ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

   The duplicate keyframe selector is overwritten by later one.
  
  > 1 │ @keyframes foo { 0% {} 0% {} }
                          ^^
    2 │ 
  
   Consider using a different percentage value or keyword to avoid duplication
  
@keyframes foo { 0% {} 100% {} }
@keyframes foo { from {} to {} }