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 +10 -0
- package/lib/hacks/grid-utils.js +5 -4
- package/package.json +1 -1
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
|
+
)
|
package/lib/hacks/grid-utils.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|
1018
|
-
r.walkDecls(
|
|
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) {
|