autoprefixer
Advanced tools
Comparing version 6.7.2 to 6.7.3
@@ -0,1 +1,4 @@ | ||
## 6.7.3 | ||
* Fix compatibility with “Intrinsic & Extrinsic Sizing” spec update. | ||
## 6.7.2 | ||
@@ -2,0 +5,0 @@ * Do not prefix grid/flexbox in `@supports` on `grid: false`/`flexbox: false`. |
@@ -372,3 +372,3 @@ (function() { | ||
feature(require('caniuse-db/features-json/intrinsic-width.json'), function(browsers) { | ||
return prefix('max-content', 'min-content', 'fit-content', 'fill', 'fill-available', { | ||
return prefix('max-content', 'min-content', 'fit-content', 'fill', 'fill-available', 'stretch', { | ||
props: ['width', 'min-width', 'max-width', 'height', 'min-height', 'max-height', 'inline-size', 'min-inline-size', 'max-inline-size', 'block-size', 'min-block-size', 'max-block-size'], | ||
@@ -375,0 +375,0 @@ browsers: browsers, |
@@ -88,3 +88,3 @@ (function() { | ||
Value.hack(require('./hacks/fill')); | ||
Value.hack(require('./hacks/stretch')); | ||
@@ -91,0 +91,0 @@ Value.hack(require('./hacks/gradient')); |
(function() { | ||
var OLD_DIRECTION, Processor, Value, utils, vendor; | ||
var OLD_DIRECTION, Processor, SIZES, Value, utils, vendor; | ||
@@ -12,2 +12,4 @@ vendor = require('postcss/lib/vendor'); | ||
SIZES = ['width', 'height', 'min-width', 'max-width', 'min-height', 'max-height', 'inline-size', 'min-inline-size', 'max-inline-size', 'block-size', 'min-block-size', 'max-block-size']; | ||
Processor = (function() { | ||
@@ -86,6 +88,12 @@ function Processor(prefixes) { | ||
} | ||
if (decl.value.indexOf('fill-available') !== -1) { | ||
result.warn('Replace fill-available to fill, ' + 'because spec had been changed', { | ||
node: decl | ||
}); | ||
if (SIZES.indexOf(decl.prop) !== -1) { | ||
if (decl.value.indexOf('fill-available') !== -1) { | ||
result.warn('Replace fill-available to stretch, ' + 'because spec had been changed', { | ||
node: decl | ||
}); | ||
} else if (decl.value.indexOf('fill') !== -1) { | ||
result.warn('Replace fill to stretch, because spec had been changed', { | ||
node: decl | ||
}); | ||
} | ||
} | ||
@@ -92,0 +100,0 @@ if (_this.prefixes.options.flexbox !== false) { |
{ | ||
"name": "autoprefixer", | ||
"version": "6.7.2", | ||
"version": "6.7.3", | ||
"description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website", | ||
@@ -16,11 +16,11 @@ "keywords": [ | ||
"dependencies": { | ||
"browserslist": "^1.7.1", | ||
"caniuse-db": "^1.0.30000618", | ||
"browserslist": "^1.7.2", | ||
"caniuse-db": "^1.0.30000623", | ||
"normalize-range": "^0.1.2", | ||
"num2fraction": "^1.2.2", | ||
"postcss": "^5.2.11", | ||
"postcss": "^5.2.13", | ||
"postcss-value-parser": "^3.2.3" | ||
}, | ||
"devDependencies": { | ||
"browserify": "^14.0.0", | ||
"browserify": "^14.1.0", | ||
"eslint-config-postcss": "^2.0.2", | ||
@@ -27,0 +27,0 @@ "fs-extra": "^2.0.0", |
@@ -246,2 +246,6 @@ # Autoprefixer [![Build Status][ci-img]][ci] | ||
#### Why doesn’t Autoprefixer transform generic font-family `system-ui`? | ||
`system-ui` is technically not a prefix and the transformation is not future-proof. But you can use [postcss-font-family-system-ui](https://github.com/JLHwung/postcss-font-family-system-ui) to transform `system-ui` to a practical font-family list. | ||
## Usage | ||
@@ -515,2 +519,5 @@ | ||
In Sass/SCSS you can use all the disable options above, add an exclamation mark | ||
in the start of comment: `/*! autoprefixer: off */`. | ||
## Options | ||
@@ -517,0 +524,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
210130
4462
569
Updatedbrowserslist@^1.7.2
Updatedcaniuse-db@^1.0.30000623
Updatedpostcss@^5.2.13