@csstools/postcss-fit-tolerance-property
Use the fit tolerance property in css
Last updated 3 months ago by romainmenke .
MIT-0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @csstools/postcss-fit-tolerance-property 
SYNC missed versions from official npm registry.

PostCSS Fit Tolerance Property PostCSS Logo

npm install @csstools/postcss-fit-tolerance-property --save-dev

PostCSS Fit Tolerance Property lets you use the fit-tolerance property following the CSS Grid Specification.
This initially shipped in some browser versions as flow-tolerance.

.foo {
	fit-tolerance: 2em;
}

/* becomes */

.foo {
	flow-tolerance: 2em;
	fit-tolerance: 2em;
}

Usage

Add PostCSS Fit Tolerance Property to your project:

npm install postcss @csstools/postcss-fit-tolerance-property --save-dev

Use it as a PostCSS plugin:

const postcss = require('postcss');
const postcssFitToleranceProperty = require('@csstools/postcss-fit-tolerance-property');

postcss([
	postcssFitToleranceProperty(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);

Options

preserve

The preserve option determines whether the original notation is preserved. By default, it is preserved.

postcssFitToleranceProperty({ preserve: false })
.foo {
	fit-tolerance: 2em;
}

/* becomes */

.foo {
	flow-tolerance: 2em;
}

Current Tags

  • 1.0.1                                ...           latest (3 months ago)

2 Versions

  • 1.0.1                                ...           3 months ago
  • 1.0.0                                ...           3 months ago
Downloads
Total 2
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE