Skip to content

Commit

Permalink
Fix value-no-vendor-prefix false positives/negatives
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouvedia committed Apr 26, 2024
1 parent 68cb920 commit 3e7f995
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions lib/utils/isAutoprefixable.mjs
Expand Up @@ -202,6 +202,9 @@ const PROPERTIES = new Set([
]);

/**
* This list is currently being used to compile all the prefixed properties that can safely be unprefixed.
* i.e. value-no-vendor-prefix autofix ought to be able to handle it appropriately
* It was initially populated using the following example:
* @example
* Object.values(prefixes.remove)
* .filter((p) => Array.isArray(p.values))
Expand All @@ -212,18 +215,14 @@ const PROPERTIES = new Set([
* @see https://github.com/stylelint/stylelint/pull/5312/files#r636018013
*/
const PROPERTY_VALUES = new Set([
'-khtml-box',
'-moz-all',
'-moz-available',
'-moz-box',
'-moz-calc',
'-moz-crisp-edges',
'-moz-element',
'-moz-fit-content',
'-moz-grab',
'-moz-grabbing',
'-moz-initial',
'-moz-inline-box',
'-moz-isolate',
'-moz-isolate-override',
'-moz-linear-gradient',
Expand All @@ -238,35 +237,31 @@ const PROPERTY_VALUES = new Set([
'-moz-zoom-out',
'-ms-flexbox',
'-ms-grid',
'-ms-inline-flexbox',
'-ms-inline-grid',
'-ms-linear-gradient',
'-ms-radial-gradient',
'-ms-repeating-linear-gradient',
'-ms-repeating-radial-gradient',
'-o-crisp-edges',
'-o-linear-gradient',
'-o-pixelated',
'-o-pre-wrap',
'-o-radial-gradient',
'-o-repeating-linear-gradient',
'-o-repeating-radial-gradient',
'-webkit-box',
'-webkit-calc',
'-webkit-cross-fade',
'-webkit-fill-available',
'-webkit-filter',
'-webkit-fit-content',
'-webkit-flex',
'-webkit-grab',
'-webkit-grabbing',
'-webkit-image-set',
'-webkit-inline-box',
'-webkit-inline-flex',
'-webkit-isolate',
'-webkit-linear-gradient',
'-webkit-max-content',
'-webkit-min-content',
'-webkit-optimize-contrast',
'-webkit-plaintext',
'-webkit-radial-gradient',
'-webkit-repeating-linear-gradient',
'-webkit-repeating-radial-gradient',
Expand Down

0 comments on commit 3e7f995

Please sign in to comment.