autoprefixer 6.7.6 → 7.1.0

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 (66) hide show
  1. package/AUTHORS +1 -0
  2. package/CHANGELOG.md +23 -0
  3. package/README.md +10 -16
  4. package/data/prefixes.js +551 -517
  5. package/lib/at-rule.js +55 -38
  6. package/lib/autoprefixer.js +89 -63
  7. package/lib/brackets.js +59 -39
  8. package/lib/browsers.js +102 -65
  9. package/lib/declaration.js +212 -121
  10. package/lib/hacks/align-content.js +65 -38
  11. package/lib/hacks/align-items.js +62 -38
  12. package/lib/hacks/align-self.js +63 -36
  13. package/lib/hacks/appearance.js +42 -0
  14. package/lib/hacks/background-size.js +29 -20
  15. package/lib/hacks/block-logical.js +36 -21
  16. package/lib/hacks/border-image.js +26 -16
  17. package/lib/hacks/border-radius.js +60 -39
  18. package/lib/hacks/break-props.js +69 -44
  19. package/lib/hacks/cross-fade.js +40 -37
  20. package/lib/hacks/display-flex.js +81 -31
  21. package/lib/hacks/display-grid.js +29 -19
  22. package/lib/hacks/filter-value.js +66 -45
  23. package/lib/hacks/filter.js +26 -17
  24. package/lib/hacks/flex-basis.js +60 -30
  25. package/lib/hacks/flex-direction.js +85 -53
  26. package/lib/hacks/flex-flow.js +67 -49
  27. package/lib/hacks/flex-grow.js +45 -26
  28. package/lib/hacks/flex-shrink.js +60 -30
  29. package/lib/hacks/flex-spec.js +18 -8
  30. package/lib/hacks/flex-values.js +39 -20
  31. package/lib/hacks/flex-wrap.js +29 -20
  32. package/lib/hacks/flex.js +68 -43
  33. package/lib/hacks/fullscreen.js +31 -21
  34. package/lib/hacks/gradient.js +462 -302
  35. package/lib/hacks/grid-column-align.js +55 -0
  36. package/lib/hacks/grid-end.js +53 -28
  37. package/lib/hacks/grid-row-align.js +39 -19
  38. package/lib/hacks/grid-start.js +80 -48
  39. package/lib/hacks/grid-template.js +91 -55
  40. package/lib/hacks/image-rendering.js +63 -33
  41. package/lib/hacks/image-set.js +28 -20
  42. package/lib/hacks/inline-logical.js +32 -17
  43. package/lib/hacks/intrinsic.js +66 -0
  44. package/lib/hacks/justify-content.js +69 -42
  45. package/lib/hacks/mask-border.js +36 -21
  46. package/lib/hacks/order.js +58 -35
  47. package/lib/hacks/pixelated.js +44 -30
  48. package/lib/hacks/placeholder.js +40 -25
  49. package/lib/hacks/text-emphasis-position.js +27 -20
  50. package/lib/hacks/transform-decl.js +94 -52
  51. package/lib/hacks/writing-mode.js +37 -27
  52. package/lib/info.js +117 -78
  53. package/lib/old-selector.js +84 -58
  54. package/lib/old-value.js +22 -20
  55. package/lib/prefixer.js +164 -95
  56. package/lib/prefixes.js +446 -351
  57. package/lib/processor.js +394 -278
  58. package/lib/resolution.js +135 -75
  59. package/lib/selector.js +145 -84
  60. package/lib/supports.js +330 -210
  61. package/lib/transition.js +396 -243
  62. package/lib/utils.js +84 -48
  63. package/lib/value.js +118 -80
  64. package/package.json +54 -14
  65. package/lib/hacks/justify-items.js +0 -31
  66. package/lib/hacks/stretch.js +0 -45
package/AUTHORS CHANGED
@@ -43,6 +43,7 @@ Denis Sokolov <denis@sokolov.cc>
43
43
  Dominik Porada <dominik@porada.co>
44
44
  Dominik Schilling <dominikschilling+git@gmail.com>
45
45
  dotch <ch.weiss@hotmail.de>
46
+ Dmitry Semigradsky <semigradskyd@gmail.com>
46
47
  Efremov Alexey <lexich121@gmail.com>
47
48
  eitanr <eitanr@wix.com>
48
49
  Erik Sundahl <esundahl@gmail.com>
package/CHANGELOG.md CHANGED
@@ -1,6 +1,29 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
+ ## 7.1 “Universitas litterarum”
5
+ * Add `unicode-bidi` support.
6
+ * Add `-webkit-appearance` support for Edge.
7
+ * Add `from` option to `info()`.
8
+ * Fix intrinsic widths prefixes in Grid Layout.
9
+
10
+ ## 7.0.1
11
+ * Fix Autoprefixer for old JS runtimes.
12
+
13
+ ## 7.0 “Coelestem adspicit lucem”
14
+ * Remove node.js 0.12 support.
15
+ * Use PostCSS 6.0.
16
+ * Use Browserslist 2.
17
+ * Use `caniuse-lite` instead of `caniuse-db` (by Ben Briggs).
18
+ * Use `^` for Browserslist dependencies, instead of `~`.
19
+ * Rewrite project from CoffeeScript to Babel (by Dmitry Semigradsky).
20
+ * Disable Grid Layout prefixes for IE by default.
21
+ * Fix `-ms-grid-column-align`.
22
+ * Move tests to Jest.
23
+
24
+ ## 6.7.7
25
+ * Fix `order` for non-digit values.
26
+
4
27
  ## 6.7.6
5
28
  * Fix `font-kerning` (by Chi Vinh Le).
6
29
 
package/README.md CHANGED
@@ -47,7 +47,7 @@ Twitter account for news and releases: [@autoprefixer].
47
47
 
48
48
  [interactive demo]: http://autoprefixer.github.io/
49
49
  [@autoprefixer]: https://twitter.com/autoprefixer
50
- [recommended]: https://developers.google.com/web/tools/setup/setup-buildtools#dont-trip-up-with-vendor-prefixes
50
+ [recommended]: https://developers.google.com/web/tools/setup/setup-buildtools#dont_trip_up_with_vendor_prefixes
51
51
  [Can I Use]: http://caniuse.com/
52
52
  [PostCSS]: https://github.com/postcss/postcss
53
53
  [ci-img]: https://travis-ci.org/postcss/autoprefixer.svg
@@ -227,15 +227,9 @@ wrote `-webkit-gradient` without W3C’s `gradient`,
227
227
  Autoprefixer will not add other prefixes.
228
228
 
229
229
  But [PostCSS] has a plugins to convert CSS to unprefixed state.
230
- Use them before Autoprefixer:
230
+ Use [postcss-unprefix] before Autoprefixer.
231
231
 
232
- * [postcss-unprefix]
233
- * [postcss-flexboxfixer]
234
- * [postcss-gradientfixer]
235
-
236
- [postcss-gradientfixer]: https://github.com/hallvors/postcss-gradientfixer
237
- [postcss-flexboxfixer]: https://github.com/hallvors/postcss-flexboxfixer
238
- [postcss-unprefix]: https://github.com/yisibl/postcss-unprefix
232
+ [postcss-unprefix]: https://github.com/gucong3000/postcss-unprefix
239
233
 
240
234
  #### Does Autoprefixer add `-epub-` prefix?
241
235
 
@@ -379,7 +373,7 @@ let style = prefixer({
379
373
 
380
374
  ### GUI Tools
381
375
 
382
- * [CodeKit](https://incident57.com/codekit/help.html#autoprefixer)
376
+ * [CodeKit](https://codekitapp.com/help/autoprefixer/)
383
377
  * [Prepros](https://prepros.io)
384
378
 
385
379
  ### CLI
@@ -388,7 +382,7 @@ You can use the [postcss-cli] to run Autoprefixer from CLI:
388
382
 
389
383
  ```sh
390
384
  npm install --global postcss-cli autoprefixer
391
- postcss --use autoprefixer *.css -d build/
385
+ postcss *.css --use autoprefixer -d build/
392
386
  ```
393
387
 
394
388
  See `postcss -h` for help.
@@ -476,14 +470,14 @@ a {
476
470
  If some prefixes were generated in a wrong way,
477
471
  please create an issue on GitHub.
478
472
 
479
- Autoprefixer has 4 features, which can be disabled by options:
473
+ Autoprefixer has 4 features, which can be enabled or disabled by options:
480
474
 
481
475
  * `supports: false` will disable `@supports` parameters prefixing.
482
476
  * `flexbox: false` will disable flexbox properties prefixing.
483
477
  Or `flexbox: "no-2009"` will add prefixes only for final and IE
484
478
  versions of specification.
485
- * `grid: false` will disable Grid Layout prefixes for IE.
486
479
  * `remove: false` will disable cleaning outdated prefixes.
480
+ * `grid: true` will enable Grid Layout prefixes for IE.
487
481
 
488
482
  If you do not need Autoprefixer in some part of your CSS,
489
483
  you can use control comments to disable Autoprefixer.
@@ -529,7 +523,7 @@ var plugin = autoprefixer({ cascade: false });
529
523
 
530
524
  There are 8 options:
531
525
 
532
- * `browsers` (array): list of browsers query (like `last 2 version`),
526
+ * `browsers` (array): list of browsers query (like `last 2 versions`),
533
527
  which are supported in your project. We recommend to use `browserslist`
534
528
  config or `browserslist` key in `package.json`, rather than this option
535
529
  to share browsers with other tools. See [Browserslist docs] for available
@@ -546,7 +540,7 @@ There are 8 options:
546
540
  properties. With `"no-2009"` value Autoprefixer will add prefixes only
547
541
  for final and IE versions of specification. Default is `true`.
548
542
  * `grid` (boolean): should Autoprefixer add IE prefixes for Grid Layout
549
- properties. Default is `true`.
543
+ properties. Default is `false`.
550
544
  * `stats` (object): custom [usage statistics] for `> 10% in my stats`
551
545
  browsers query.
552
546
 
@@ -556,7 +550,7 @@ You can use PostCSS processor to process several CSS files
556
550
  to increase performance.
557
551
 
558
552
  [usage statistics]: https://github.com/ai/browserslist#custom-usage-data
559
- [PostCSS API]: https://github.com/postcss/postcss/blob/master/docs/api.md
553
+ [PostCSS API]: http://api.postcss.org
560
554
 
561
555
  ## Debug
562
556