autoprefixer 10.4.16 → 10.4.18

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.
@@ -7,6 +7,11 @@ class UserSelect extends Declaration {
7
7
  insert(decl, prefix, prefixes) {
8
8
  if (decl.value === 'all' && prefix === '-ms-') {
9
9
  return undefined
10
+ } else if (
11
+ decl.value === 'contain' &&
12
+ (prefix === '-moz-' || prefix === '-webkit-')
13
+ ) {
14
+ return undefined
10
15
  } else {
11
16
  return super.insert(decl, prefix, prefixes)
12
17
  }
package/lib/processor.js CHANGED
@@ -712,7 +712,13 @@ class Processor {
712
712
  * Some rare old values, which is not in standard
713
713
  */
714
714
  withHackValue(decl) {
715
- return decl.prop === '-webkit-background-clip' && decl.value === 'text'
715
+ return (
716
+ (decl.prop === '-webkit-background-clip' && decl.value === 'text') ||
717
+ // Do not remove -webkit-box-orient when -webkit-line-clamp is present.
718
+ // https://github.com/postcss/autoprefixer/issues/1510
719
+ (decl.prop === '-webkit-box-orient' &&
720
+ decl.parent.some(d => d.prop === '-webkit-line-clamp'))
721
+ )
716
722
  }
717
723
  }
718
724
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "10.4.16",
3
+ "version": "10.4.18",
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,9 +39,9 @@
39
39
  "postcss": "^8.1.0"
40
40
  },
41
41
  "dependencies": {
42
- "browserslist": "^4.21.10",
43
- "caniuse-lite": "^1.0.30001538",
44
- "fraction.js": "^4.3.6",
42
+ "browserslist": "^4.23.0",
43
+ "caniuse-lite": "^1.0.30001591",
44
+ "fraction.js": "^4.3.7",
45
45
  "normalize-range": "^0.1.2",
46
46
  "picocolors": "^1.0.0",
47
47
  "postcss-value-parser": "^4.2.0"