npm.io
2.0.0 • Published 7 months ago

@csstools/postcss-position-area-property

Licence
MIT-0
Version
2.0.0
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
1.1K

PostCSS Position Area Property PostCSS Logo

npm install @csstools/postcss-position-area-property --save-dev

PostCSS Position Area Property lets you fallback position-area to the alternate name inset-area following the CSS Specification.

.foo {
	position-area: start;
}

/* becomes */

.foo {
	inset-area: start;
	position-area: start;
}

Usage

Add PostCSS Position Area Property to your project:

npm install postcss @csstools/postcss-position-area-property --save-dev

Use it as a PostCSS plugin:

const postcss = require('postcss');
const postcssPositionAreaProperty = require('@csstools/postcss-position-area-property');

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

Keywords