postcss-reduce-initial
Advanced tools
Weekly downloads
Changelog
v5.1.14
Readme
Reduce
initial
definitions to the actual initial value, where possible.
With npm do:
npm install postcss-reduce-initial --save
See the data for more conversions. This data is courtesy of Mozilla.
initial
valuesWhen the initial
keyword is longer than the property value, it will
be converted:
h1 {
min-width: initial;
}
h1 {
min-width: 0;
}
initial
When the initial
value is smaller than the property value, it will
be converted:
h1 {
transform-box: border-box;
}
h1 {
transform-box: initial;
}
This conversion is only applied when you supply a browsers list that all support
the initial
keyword; it's worth noting that Internet Explorer has no support.
Type: Array<String>
Default: undefined
It contains the Array of properties that will be ignored while reducing its value to initial.
Example : { ignore : ["min-height"] }
See the PostCSS documentation for examples for your environment.
See CONTRIBUTORS.md.
This program uses a list of CSS properties derived from data maintained my the MDN team at Mozilla and licensed under the CC0 1.0 Universal Public Domain Dedication.
MIT © Ben Briggs
Reduce initial definitions to the actual initial value, where possible.
The npm package postcss-reduce-initial receives a total of 11,074,409 weekly downloads. As such, postcss-reduce-initial popularity was classified as popular.
We found that postcss-reduce-initial demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 7 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.