noImportantInKeyframe
Ta treść nie jest jeszcze dostępna w Twoim języku.
Summary
Section titled “Summary”- Rule available since: 
v1.8.0 - Diagnostic Category: 
lint/suspicious/noImportantInKeyframe - This rule is recommended, which means is enabled by default.
 - This rule doesn’t have a fix.
 - The default severity of this rule is error.
 - Sources:
 
How to configure
Section titled “How to configure”{  "linter": {    "rules": {      "suspicious": {        "noImportantInKeyframe": "error"      }    }  }}Description
Section titled “Description”Disallow invalid !important within keyframe declarations
Using !important within keyframes declarations is completely ignored in some browsers.
Examples
Section titled “Examples”Invalid
Section titled “Invalid”@keyframes foo {    from {      opacity: 0;    }    to {      opacity: 1 !important;    }}code-block.css:6:18 lint/suspicious/noImportantInKeyframe ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  ✖ Using !important within keyframes declaration is completely ignored in some browsers.
  
    4 │     }
    5 │     to {
  > 6 │       opacity: 1 !important;
      │                  ^^^^^^^^^^
    7 │     }
    8 │ }
  
  ℹ Consider removing useless !important declaration.
  
@keyframes foo {    from {      opacity: 0;    }    to {      opacity: 1;    }}Related links
Section titled “Related links”Copyright (c) 2023-present Biome Developers and Contributors.