@hint/hint-css-prefix-order
Ensure vendor-prefixed versions of a CSS property are listed before the unprefixed version.
Last updated 4 years ago by vidorteg .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @hint/hint-css-prefix-order 
SYNC missed versions from official npm registry.

Prefixed CSS first (css-prefix-order)

Ensure vendor-prefixed versions of a CSS property are listed before the standardized, unprefixed version.

Why is this important?

When multiple versions of the same CSS property are specified, the last supported one will be used due to how browsers handle fallback values. This means the order matters when using both vendor-prefixed and unprefixed versions of the same property. Specifically, the unprefixed version must be listed last to ensure standardized behavior takes precedence.

What does the hint check?

This hint examines CSS files looking for blocks containing both prefixed and unprefixed CSS properties or values. The hint then verifies the last listed version of a particular property in a block is unprefixed.

Examples that trigger the hint

appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
display: grid;
display: -ms-grid;

Examples that pass the hint

-moz-appearance: none;
-webkit-appearance: none;
appearance: none;
display: -ms-grid;
display: grid;

How to use this hint?

This package is installed automatically by webhint:

npm install hint --save-dev

To use it, activate it via the .hintrc configuration file:

{
    "connector": {...},
    "formatters": [...],
    "parsers": [...],
    "hints": {
        "css-prefix-order": "error"
    },
    ...
}

Note: The recommended way of running webhint is as a devDependency of your project.

Current Tags

  • 1.5.3                                ...           latest (4 years ago)

42 Versions

  • 1.5.3                                ...           4 years ago
  • 1.5.2                                ...           4 years ago
  • 1.5.1                                ...           4 years ago
  • 1.5.0                                ...           4 years ago
  • 1.4.19                                ...           4 years ago
  • 1.4.18                                ...           4 years ago
  • 1.4.17                                ...           4 years ago
  • 1.4.16                                ...           4 years ago
  • 1.4.15                                ...           4 years ago
  • 1.4.14                                ...           4 years ago
  • 1.4.13                                ...           4 years ago
  • 1.4.12                                ...           4 years ago
  • 1.4.11                                ...           4 years ago
  • 1.4.10                                ...           5 years ago
  • 1.4.9                                ...           5 years ago
  • 1.4.8                                ...           5 years ago
  • 1.4.7                                ...           5 years ago
  • 1.4.6                                ...           6 years ago
  • 1.4.5                                ...           6 years ago
  • 1.4.4                                ...           6 years ago
  • 1.4.3                                ...           6 years ago
  • 1.4.2                                ...           6 years ago
  • 1.4.1                                ...           6 years ago
  • 1.4.0                                ...           6 years ago
  • 1.3.0                                ...           6 years ago
  • 1.2.10                                ...           6 years ago
  • 1.2.9                                ...           7 years ago
  • 1.2.8                                ...           7 years ago
  • 1.2.7                                ...           7 years ago
  • 1.2.6                                ...           7 years ago
  • 1.2.5                                ...           7 years ago
  • 1.2.4                                ...           7 years ago
  • 1.2.3                                ...           7 years ago
  • 1.2.2                                ...           7 years ago
  • 1.2.1                                ...           7 years ago
  • 1.2.0                                ...           7 years ago
  • 1.1.2                                ...           7 years ago
  • 1.1.1                                ...           7 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 4
This Month 4
Last Day 4
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (16)

Copyright 2013 - present © cnpmjs.org | Home |