autoprefixer
Advanced tools
@@ -9,2 +9,11 @@ let OldValue = require('../old-value') | ||
| class Intrinsic extends Value { | ||
| constructor(name, prefixes, all) { | ||
| super(name, prefixes, all) | ||
| if (this.isStretch() && prefixes.includes('-moz-')) { | ||
| // Generate -moz-available before -webkit-fill-available | ||
| // since -webkit-fill-available is closer to spec and FF supports both | ||
| this.prefixes = ['-moz-'].concat(prefixes.filter(i => i !== '-moz-')) | ||
| } | ||
| } | ||
| add(decl, prefix) { | ||
@@ -11,0 +20,0 @@ if (decl.prop.includes('grid') && prefix !== '-webkit-') { |
+1
-1
| { | ||
| "name": "autoprefixer", | ||
| "version": "10.5.1", | ||
| "version": "10.5.2", | ||
| "description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
+1
-1
@@ -36,4 +36,4 @@ # Autoprefixer [![Cult Of Martians][cult-img]][cult] | ||
| .image { | ||
| width: -moz-available; | ||
| width: -webkit-fill-available; | ||
| width: -moz-available; | ||
| width: stretch; | ||
@@ -40,0 +40,0 @@ } |
201240
0.18%7073
0.11%