Skip to content

Files

Latest commit

 

History

History
48 lines (34 loc) · 1.01 KB

declaration-property-value-keyword-no-deprecated.md

File metadata and controls

48 lines (34 loc) · 1.01 KB

Pattern: Deprecated keyword for property within declaration

Issue: -

Description

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

Examples

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; }