JSPM

@csstools/postcss-position-area-property

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 420993
  • Score
    100M100P100Q205280F
  • License MIT-0

Fallback `position-area` to the alternate name `inset-area`

Package Exports

  • @csstools/postcss-position-area-property

Readme

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 */);