autoprefixer 10.5.6 → 10.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/data/prefixes.js CHANGED
@@ -1139,3 +1139,13 @@ f(prefixPrintAdjust, browsers =>
1139
1139
  feature: 'css-print-color-adjust'
1140
1140
  })
1141
1141
  )
1142
+
1143
+ // initial-letter
1144
+ let prefixInitialLetter = require('caniuse-lite/data/features/css-initial-letter')
1145
+
1146
+ f(prefixInitialLetter, browsers =>
1147
+ prefix(['initial-letter'], {
1148
+ browsers,
1149
+ feature: 'css-initial-letter'
1150
+ })
1151
+ )
@@ -5,6 +5,8 @@ let uniq = require('../utils').uniq
5
5
  let escapeRegexp = require('../utils').escapeRegexp
6
6
  let splitSelector = require('../utils').splitSelector
7
7
 
8
+ const GAP_PROPS = /^(grid-)?((row|column)-)?gap$/
9
+
8
10
  function convert(value) {
9
11
  if (
10
12
  value &&
@@ -878,8 +880,7 @@ function getGridGap(decl) {
878
880
  let gap = {}
879
881
 
880
882
  // try to find gap
881
- let testGap = /^(grid-)?((row|column)-)?gap$/
882
- decl.parent.walkDecls(testGap, ({ prop, value }) => {
883
+ decl.parent.walkDecls(GAP_PROPS, ({ prop, value }) => {
883
884
  if (/^(grid-)?gap$/.test(prop)) {
884
885
  let [row, , column] = parser(value).nodes
885
886
 
@@ -1014,8 +1015,8 @@ function inheritGridGap(decl, gap) {
1014
1015
  return false
1015
1016
  }
1016
1017
 
1017
- // find grid-gap values
1018
- r.walkDecls('grid-gap', d => (gridGap = getGridGap(d)))
1018
+ // find gap values, set either by the shorthand or by the longhands
1019
+ r.walkDecls(GAP_PROPS, d => (gridGap = getGridGap(d)))
1019
1020
 
1020
1021
  // skip rule without gaps
1021
1022
  if (!gridGap || Object.keys(gridGap).length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "10.5.6",
3
+ "version": "10.6.1",
4
4
  "description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
5
5
  "keywords": [
6
6
  "autoprefixer",