inline-style-prefixer
inline-style-prefixer copied to clipboard
Autoprefixer for JavaScript style objects
Recently ```browserslist``` removed IE 11 from defaults in 4.21, which causes ```var _browserslist = require("browserslist")``` in `caniuse-api` does not include IE by default at all. Therefore ```versions['ie']``` is `undefined`, and...
#222
Fix #194
This PR closes #194
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.22.0 to 1.27.0. Release notes Sourced from prismjs's releases. v1.27.0 Release 1.27.0 v1.26.0 Release 1.26.0 v1.25.0 Release 1.25.0 v1.24.1 Release 1.24.1 v1.24.0 Release 1.24.0 v1.23.0 Release 1.23.0...
Changes to reduce the final bundle size: - Extract the constants (e.g. `['-webkit-', '-moz-', '']`). - Prefer `Array#indexOf` over `Object#hasOwnProperty` when possible. - Prefer ternary expressions
Just updated some of my packages today and noticed this error off the bat: ``` TypeError: Cannot read property 'split' of undefined at gridColumn (C:\dev\_projects\vibescout-web-workspace\node_modules\inline-style-prefixer\lib\plugins\grid.js:32:36) at Array.grid (C:\dev\_projects\vibescout-web-workspace\node_modules\inline-style-prefixer\lib\plugins\grid.js:110:5) at prefixValue...
With this style object: ```js { maskImage: 'radial-gradient(closest-side, black, transparent)' } ``` Using `inline-style-prefixer` (via `fela-preset-web`), the resulting prefixed properties and rules are all unusable in Chrome: ``` -webkit-mask-image: -webkit-radial-gradient(closest-side,...
[Reproduction link](https://repl.it/repls/WorstCarelessWrapper) For reference: [CSS Grid in IE: Debunking Common IE Grid Misconceptions](https://css-tricks.com/css-grid-in-ie-debunking-common-ie-grid-misconceptions/#article-header-id-1) ### Current behavior IE prefix for css grid are correctly added but with improper values: ```javascript {...
As per https://github.com/robinweser/inline-style-prefixer/issues/159#issuecomment-470307093 the prefixing for [backgroundClip](https://github.com/robinweser/inline-style-prefixer/blob/master/modules/plugins/backgroundClip.js) is applied to the value rather than the property.
**Background:** In plain CSS, `transition-property` and `transition-timing-function` are interdependent. ``` .myClass { transition-property: 'property-1, property2, property-3'; transition-timing-function: 'function-1, function-2, function3'; } ``` `function-1` applies to `property-1`, `function-2` to `property-2`, `function-3`...