Skip to content

Commit 660336a

Browse files
authored
postcss-preset-env: add position-area-property (#1732)
1 parent dcb535d commit 660336a

28 files changed

+66
-27
lines changed

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin-packs/postcss-preset-env/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
# Changes to PostCSS Preset Env
22

3+
### Unreleased (minor)
4+
5+
- Added `@csstools/postcss-position-area-property` [Check the plugin README](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-position-area-property#readme) for usage details.
6+
- Updated [`cssdb`](https://github.com/csstools/cssdb) to [`8.5.1`](https://github.com/csstools/cssdb/blob/main/CHANGELOG.md#851-december-3-2025) (patch)
7+
38
### 10.4.0
49

510
_September 21, 2025_
611

7-
_August 22, 2025_
8-
912
- Added `@csstools/postcss-contrast-color-function` [Check the plugin README](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-contrast-color-function#readme) for usage details.
1013
- Updated [`@csstools/postcss-progressive-custom-properties`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties) to [`4.2.1`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties/CHANGELOG.md#421) (patch)
1114

plugin-packs/postcss-preset-env/FEATURES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ The `ID` listed is the key for PostCSS Preset Env configuration in your project.
5757
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/overflow-property.svg" height="18">](https://cssdb.org/#overflow-property) | `overflow-property` | `overflow` Shorthand Property | [example](https://preset-env.cssdb.org/features/#overflow-property) | [docs](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-overflow-shorthand#readme) |
5858
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/overflow-wrap-property.svg" height="18">](https://cssdb.org/#overflow-wrap-property) | `overflow-wrap-property` | `overflow-wrap` Property | [example](https://preset-env.cssdb.org/features/#overflow-wrap-property) | [docs](https://github.com/mattdimu/postcss-replace-overflow-wrap#readme) |
5959
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/place-properties.svg" height="18">](https://cssdb.org/#place-properties) | `place-properties` | Place Properties | [example](https://preset-env.cssdb.org/features/#place-properties) | [docs](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-place#readme) |
60+
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/position-area-property.svg" height="18">](https://cssdb.org/#position-area-property) | `position-area-property` | `position-area` property | [example](https://preset-env.cssdb.org/features/#position-area-property) | [docs](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-position-area-property#readme) |
6061
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/prefers-color-scheme-query.svg" height="18">](https://cssdb.org/#prefers-color-scheme-query) | `prefers-color-scheme-query` | `prefers-color-scheme` Media Query | [example](https://preset-env.cssdb.org/features/#prefers-color-scheme-query) | [docs](https://github.com/csstools/postcss-plugins/tree/main/plugins/css-prefers-color-scheme#readme) |
6162
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/random-function.svg" height="18">](https://cssdb.org/#random-function) | `random-function` | `random()` function | [example](https://preset-env.cssdb.org/features/#random-function) | [docs](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-random-function#readme) |
6263
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/rebeccapurple-color.svg" height="18">](https://cssdb.org/#rebeccapurple-color) | `rebeccapurple-color` | `rebeccapurple` Color | [example](https://preset-env.cssdb.org/features/#rebeccapurple-color) | [docs](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-rebeccapurple#readme) |

plugin-packs/postcss-preset-env/dist/index.cjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

plugin-packs/postcss-preset-env/dist/index.d.ts

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,18 @@ import type { pluginOptions as pluginOptions_47 } from '@csstools/postcss-oklab-
4444
import type { pluginOptions as pluginOptions_48 } from 'postcss-overflow-shorthand';
4545
import type { pluginOptions as pluginOptions_49 } from 'postcss-place';
4646
import type { pluginOptions as pluginOptions_5 } from 'css-blank-pseudo';
47-
import type { pluginOptions as pluginOptions_50 } from 'css-prefers-color-scheme';
48-
import type { pluginOptions as pluginOptions_51 } from '@csstools/postcss-random-function';
49-
import type { pluginOptions as pluginOptions_52 } from 'postcss-color-rebeccapurple';
50-
import type { pluginOptions as pluginOptions_53 } from '@csstools/postcss-relative-color-syntax';
51-
import type { pluginOptions as pluginOptions_54 } from '@csstools/postcss-scope-pseudo-class';
52-
import type { pluginOptions as pluginOptions_55 } from '@csstools/postcss-sign-functions';
53-
import type { pluginOptions as pluginOptions_56 } from '@csstools/postcss-stepped-value-functions';
54-
import type { pluginOptions as pluginOptions_57 } from '@csstools/postcss-text-decoration-shorthand';
55-
import type { pluginOptions as pluginOptions_58 } from '@csstools/postcss-trigonometric-functions';
56-
import type { pluginOptions as pluginOptions_59 } from '@csstools/postcss-unset-value';
47+
import type { pluginOptions as pluginOptions_50 } from '@csstools/postcss-position-area-property';
48+
import type { pluginOptions as pluginOptions_51 } from 'css-prefers-color-scheme';
49+
import type { pluginOptions as pluginOptions_52 } from '@csstools/postcss-random-function';
50+
import type { pluginOptions as pluginOptions_53 } from 'postcss-color-rebeccapurple';
51+
import type { pluginOptions as pluginOptions_54 } from '@csstools/postcss-relative-color-syntax';
52+
import type { pluginOptions as pluginOptions_55 } from '@csstools/postcss-scope-pseudo-class';
53+
import type { pluginOptions as pluginOptions_56 } from '@csstools/postcss-sign-functions';
54+
import type { pluginOptions as pluginOptions_57 } from '@csstools/postcss-stepped-value-functions';
55+
import type { pluginOptions as pluginOptions_58 } from '@csstools/postcss-text-decoration-shorthand';
56+
import type { pluginOptions as pluginOptions_59 } from '@csstools/postcss-trigonometric-functions';
5757
import type { pluginOptions as pluginOptions_6 } from '@csstools/postcss-cascade-layers';
58+
import type { pluginOptions as pluginOptions_60 } from '@csstools/postcss-unset-value';
5859
import type { pluginOptions as pluginOptions_7 } from 'postcss-attribute-case-insensitive';
5960
import type { pluginOptions as pluginOptions_8 } from '@csstools/postcss-color-function';
6061
import type { pluginOptions as pluginOptions_9 } from '@csstools/postcss-color-function-display-p3-linear';
@@ -261,28 +262,30 @@ export declare type pluginsOptions = {
261262
'overflow-wrap-property'?: subPluginOptions<postcssReplaceOverflowWrapOptions>;
262263
/** plugin options for "postcss-place" */
263264
'place-properties'?: subPluginOptions<pluginOptions_49>;
265+
/** plugin options for "@csstools/postcss-position-area-property" */
266+
'position-area-property'?: subPluginOptions<pluginOptions_50>;
264267
/** plugin options for "css-prefers-color-scheme" */
265-
'prefers-color-scheme-query'?: subPluginOptions<pluginOptions_50>;
268+
'prefers-color-scheme-query'?: subPluginOptions<pluginOptions_51>;
266269
/** plugin options for "@csstools/postcss-random-function" */
267-
'random-function'?: subPluginOptions<pluginOptions_51>;
270+
'random-function'?: subPluginOptions<pluginOptions_52>;
268271
/** plugin options for "postcss-color-rebeccapurple" */
269-
'rebeccapurple-color'?: subPluginOptions<pluginOptions_52>;
272+
'rebeccapurple-color'?: subPluginOptions<pluginOptions_53>;
270273
/** plugin options for "@csstools/postcss-relative-color-syntax" */
271-
'relative-color-syntax'?: subPluginOptions<pluginOptions_53>;
274+
'relative-color-syntax'?: subPluginOptions<pluginOptions_54>;
272275
/** plugin options for "@csstools/postcss-scope-pseudo-class" */
273-
'scope-pseudo-class'?: subPluginOptions<pluginOptions_54>;
276+
'scope-pseudo-class'?: subPluginOptions<pluginOptions_55>;
274277
/** plugin options for "@csstools/postcss-sign-functions" */
275-
'sign-functions'?: subPluginOptions<pluginOptions_55>;
278+
'sign-functions'?: subPluginOptions<pluginOptions_56>;
276279
/** plugin options for "@csstools/postcss-stepped-value-functions" */
277-
'stepped-value-functions'?: subPluginOptions<pluginOptions_56>;
280+
'stepped-value-functions'?: subPluginOptions<pluginOptions_57>;
278281
/** plugin options for "postcss-system-ui-font-family" */
279282
'system-ui-font-family'?: subPluginOptions<postcssFontFamilySystemUIOptions>;
280283
/** plugin options for "@csstools/postcss-text-decoration-shorthand" */
281-
'text-decoration-shorthand'?: subPluginOptions<pluginOptions_57>;
284+
'text-decoration-shorthand'?: subPluginOptions<pluginOptions_58>;
282285
/** plugin options for "@csstools/postcss-trigonometric-functions" */
283-
'trigonometric-functions'?: subPluginOptions<pluginOptions_58>;
286+
'trigonometric-functions'?: subPluginOptions<pluginOptions_59>;
284287
/** plugin options for "@csstools/postcss-unset-value" */
285-
'unset-value'?: subPluginOptions<pluginOptions_59>;
288+
'unset-value'?: subPluginOptions<pluginOptions_60>;
286289
};
287290

288291
/** postcss-clamp plugin options */

plugin-packs/postcss-preset-env/dist/index.mjs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

plugin-packs/postcss-preset-env/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"@csstools/postcss-nested-calc": "^4.0.0",
8080
"@csstools/postcss-normalize-display-values": "^4.0.0",
8181
"@csstools/postcss-oklab-function": "^4.0.12",
82+
"@csstools/postcss-position-area-property": "^1.0.0",
8283
"@csstools/postcss-progressive-custom-properties": "^4.2.1",
8384
"@csstools/postcss-random-function": "^2.0.1",
8485
"@csstools/postcss-relative-color-syntax": "^3.0.12",

plugin-packs/postcss-preset-env/scripts/plugins-data.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@
254254
"id": "break-properties",
255255
"importName": "postcssPageBreak"
256256
},
257+
{
258+
"packageName": "@csstools/postcss-position-area-property",
259+
"id": "position-area-property",
260+
"importName": "postcssPositionAreaProperty"
261+
},
257262
{
258263
"packageName": "postcss-place",
259264
"id": "place-properties",

plugin-packs/postcss-preset-env/src/plugins/plugins-by-id.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ import postcssOpacityPercentage from 'postcss-opacity-percentage';
5151
import postcssOverflowShorthand from 'postcss-overflow-shorthand';
5252
import postcssReplaceOverflowWrap from 'postcss-replace-overflow-wrap';
5353
import postcssPlace from 'postcss-place';
54+
import postcssPositionAreaProperty from '@csstools/postcss-position-area-property';
5455
import postcssPrefersColorScheme from 'css-prefers-color-scheme';
5556
import postcssProgressiveCustomProperties from '@csstools/postcss-progressive-custom-properties';
5657
import postcssRandomFunction from '@csstools/postcss-random-function';
@@ -120,6 +121,7 @@ export const pluginsById = new Map(
120121
['overflow-property', postcssOverflowShorthand],
121122
['overflow-wrap-property', postcssReplaceOverflowWrap],
122123
['place-properties', postcssPlace],
124+
['position-area-property', postcssPositionAreaProperty],
123125
['prefers-color-scheme-query', postcssPrefersColorScheme],
124126
['progressive-custom-properties', postcssProgressiveCustomProperties],
125127
['random-function', postcssRandomFunction],

plugin-packs/postcss-preset-env/src/plugins/plugins-data.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@ export default [
254254
'id': 'break-properties',
255255
'importName': 'postcssPageBreak',
256256
},
257+
{
258+
'packageName': '@csstools/postcss-position-area-property',
259+
'id': 'position-area-property',
260+
'importName': 'postcssPositionAreaProperty',
261+
},
257262
{
258263
'packageName': 'postcss-place',
259264
'id': 'place-properties',

0 commit comments

Comments
 (0)