Skip to content

Latest commit

 

History

History
80 lines (57 loc) · 1.66 KB

File metadata and controls

80 lines (57 loc) · 1.66 KB

declaration-property-value-keyword-no-deprecated

Disallow deprecated keywords for properties within declarations.

  a { color: ThreeDDarkShadow; }
/**     ↑         ↑
 * property and value pairs like these */

This rule flags keywords that were removed or deprecated after being in the CSS specifications, including editor drafts, and were subsequently either:

  • shipped in a stable version of a browser
  • shipped by a developer channel/edition browser
  • shipped but behind experimental flags
  • polyfilled with some adoption before any browser actually shipped
  • had an MDN page at one point in time

The fix option can automatically fix some of the problems reported by this rule.

The message secondary option accept arguments.

Prior art:

Options

true

The following patterns are considered problems:

a { overflow: overlay; }
a { text-justify: distribute; }

The following patterns are not considered problems:

a { overflow: auto; }
a { text-justify: inter-character; }

Optional secondary options

ignoreKeywords: ["/regex/", /regex/, "string"]

Given:

["ActiveBorder", "/caption/i"]

The following patterns are not considered problems:

a {
  color: ActiveBorder;
}
a {
  color: InactiveCaptionText;
}