noDuplicateSelectorsKeyframeBlock
诊断类别:lint/suspicious/noDuplicateSelectorsKeyframeBlock
¥Diagnostic Category: lint/suspicious/noDuplicateSelectorsKeyframeBlock
自从:v1.8.0
¥Since: v1.8.0
来源:
¥Sources:
禁止关键帧块中的重复选择器。
¥Disallow duplicate selectors within keyframe blocks.
¥Examples
¥Invalid
code-block.css:1:26 lint/suspicious/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
code-block.css:1:26 lint/suspicious/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
code-block.css:1:24 lint/suspicious/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
¥Valid
¥Related links