Skip to content

Commit 148be69

Browse files
authored
position-area-property (#1731)
1 parent 7b36e56 commit 148be69

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2018
-90
lines changed

.github/ISSUE_TEMPLATE/css-issue.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ body:
119119
- PostCSS Overflow Shorthand
120120
- PostCSS Page Break
121121
- PostCSS Place
122+
- PostCSS Position Area Property
122123
- PostCSS Progressive Custom Properties
123124
- PostCSS Pseudo Class Any Link
124125
- PostCSS Random Function

.github/ISSUE_TEMPLATE/plugin-issue.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ body:
116116
- PostCSS Overflow Shorthand
117117
- PostCSS Page Break
118118
- PostCSS Place
119+
- PostCSS Position Area Property
119120
- PostCSS Progressive Custom Properties
120121
- PostCSS Pseudo Class Any Link
121122
- PostCSS Random Function

.github/labeler.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,12 @@
395395
- plugins/postcss-place/**
396396
- experimental/postcss-place/**
397397

398+
"plugins/postcss-position-area-property":
399+
- changed-files:
400+
- any-glob-to-any-file:
401+
- plugins/postcss-position-area-property/**
402+
- experimental/postcss-position-area-property/**
403+
398404
"plugins/postcss-progressive-custom-properties":
399405
- changed-files:
400406
- any-glob-to-any-file:

package-lock.json

Lines changed: 33 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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.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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"css-blank-pseudo": "^7.0.1",
9494
"css-has-pseudo": "^7.0.3",
9595
"css-prefers-color-scheme": "^10.0.0",
96-
"cssdb": "^8.4.2",
96+
"cssdb": "^8.5.1",
9797
"postcss-attribute-case-insensitive": "^7.0.1",
9898
"postcss-clamp": "^4.1.0",
9999
"postcss-color-functional-notation": "^7.0.12",

plugin-packs/postcss-preset-env/src/lib/get-unsupported-browsers-by-feature.mjs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,39 @@ export function getUnsupportedBrowsersByFeature(feature) {
66
return [];
77
}
88

9+
if (feature.id === 'position-area-property') {
10+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/position-area#browser_compatibility
11+
// this can't be expressed in CSSDB
12+
return [
13+
'chrome 125',
14+
'chrome 126',
15+
'chrome 127',
16+
'chrome 128',
17+
'edge 125',
18+
'edge 126',
19+
'edge 127',
20+
'edge 128',
21+
'and_chr 125',
22+
'and_chr 126',
23+
'and_chr 127',
24+
'and_chr 128',
25+
'android 125',
26+
'android 126',
27+
'android 127',
28+
'android 128',
29+
30+
'samsung 27',
31+
32+
'opera 111',
33+
'opera 112',
34+
'opera 113',
35+
'opera 114',
36+
'op_mob 83',
37+
'op_mob 84',
38+
'op_mob 85',
39+
];
40+
}
41+
942
if (!('browser_support' in feature)) {
1043
// the feature does not work in any browser (yet)
1144
return [ '> 0%' ];

plugin-packs/postcss-preset-env/src/lib/ids-by-execution-order.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export default [
4747
'overflow-property',
4848
'overflow-wrap-property',
4949
'place-properties',
50+
'position-area-property',
5051
'system-ui-font-family',
5152
'font-format-keywords',
5253
'display-two-values',

plugin-packs/postcss-preset-env/test/_tape.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ postcssTape(plugin)({
4444
browsers: 'chrome >= 38',
4545
},
4646
},
47+
'basic:ch126': {
48+
message: 'supports { browsers: "chrome >= 126" } usage',
49+
options: {
50+
browsers: 'chrome >= 126',
51+
},
52+
},
53+
'basic:ch130': {
54+
message: 'supports { browsers: "chrome >= 130" } usage',
55+
options: {
56+
browsers: 'chrome >= 130',
57+
},
58+
},
4759
'basic:ie10': {
4860
message: 'supports { browsers: "ie >= 10" } usage',
4961
options: {

0 commit comments

Comments
 (0)