package
PostCSS plugin to fallback initial keyword.
npm install postcss-initialGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 5 packages.
399.7 kB
Includes dependencies.

PostCSS plugin to fallback initial keyword. Very useful in combination with
postcss-autoreset.
a {
animation: initial;
background: initial;
white-space: initial;
}
p {
background: url(/img1.png),
url(/img2.png);
background-repeat: initial no-repeat
}a {
animation: none 0s ease 0s 1 normal none running;
animation: initial;
background: transparent none repeat 0 0 / auto auto padding-box border-box scroll;
background: initial;
white-space: normal;
white-space: initial;
}
p {
background: url(/img1.png),
url(/img2.png);
background-repeat:
Killer feature!
Universal reset from future css!
a {
all: initial;
}a {
animation: none 0s ease 0s 1 normal none running;
backface-visibility: visible;
background: transparent none repeat 0 0 / auto auto padding-box border-box scroll;
border: medium none currentColor;
border-collapse: separate;
border-image: none;
border-radius: 0;
border-spacing: 0;
bottom: auto;
box-shadow:
Takes string.
Describes what subset of rules should be unsetted with all property (to reduce code weight).
Possible subsets: all, inherited.
Default value: 'all'.
Takes boolean.
Replace the initial with the fallback instead of adding it.
Default value: false.
postcss([ require('postcss-initial')({
reset: 'inherited' // reset only inherited rules
}) ])See PostCSS docs for examples for your environment.