autoprefixer 10.4.17 → 10.4.19

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.
Files changed (2) hide show
  1. package/lib/processor.js +7 -17
  2. package/package.json +3 -3
package/lib/processor.js CHANGED
@@ -94,11 +94,6 @@ class Processor {
94
94
  return displayGrid || gridTemplate || gridGap
95
95
  })
96
96
  }
97
- function insideFlex(decl) {
98
- return decl.parent.some(node => {
99
- return node.prop === 'display' && /(inline-)?flex/.test(node.value)
100
- })
101
- }
102
97
 
103
98
  let gridPrefixes =
104
99
  this.gridStatus(css, result) &&
@@ -147,17 +142,6 @@ class Processor {
147
142
  { node: decl }
148
143
  )
149
144
  }
150
- } else if (
151
- /^(align|justify|place)-(items|content)$/.test(prop) &&
152
- insideFlex(decl)
153
- ) {
154
- if (value === 'start' || value === 'end') {
155
- result.warn(
156
- `${value} value has mixed support, consider using ` +
157
- `flex-${value} instead`,
158
- { node: decl }
159
- )
160
- }
161
145
  } else if (prop === 'text-decoration-skip' && value === 'ink') {
162
146
  result.warn(
163
147
  'Replace text-decoration-skip: ink to ' +
@@ -712,7 +696,13 @@ class Processor {
712
696
  * Some rare old values, which is not in standard
713
697
  */
714
698
  withHackValue(decl) {
715
- return decl.prop === '-webkit-background-clip' && decl.value === 'text'
699
+ return (
700
+ (decl.prop === '-webkit-background-clip' && decl.value === 'text') ||
701
+ // Do not remove -webkit-box-orient when -webkit-line-clamp is present.
702
+ // https://github.com/postcss/autoprefixer/issues/1510
703
+ (decl.prop === '-webkit-box-orient' &&
704
+ decl.parent.some(d => d.prop === '-webkit-line-clamp'))
705
+ )
716
706
  }
717
707
  }
718
708
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "10.4.17",
3
+ "version": "10.4.19",
4
4
  "description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
5
5
  "engines": {
6
6
  "node": "^10 || ^12 || >=14"
@@ -39,8 +39,8 @@
39
39
  "postcss": "^8.1.0"
40
40
  },
41
41
  "dependencies": {
42
- "browserslist": "^4.22.2",
43
- "caniuse-lite": "^1.0.30001578",
42
+ "browserslist": "^4.23.0",
43
+ "caniuse-lite": "^1.0.30001599",
44
44
  "fraction.js": "^4.3.7",
45
45
  "normalize-range": "^0.1.2",
46
46
  "picocolors": "^1.0.0",