Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
873 changes: 433 additions & 440 deletions package-lock.json

Large diffs are not rendered by default.

112 changes: 56 additions & 56 deletions packages/color-helpers/docs/color-helpers.api.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/css-syntax-patches-for-csstree/dist/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@
"gradient": "[ <linear-gradient()> | <repeating-linear-gradient()> | <radial-gradient()> | <repeating-radial-gradient()> | <conic-gradient()> | <repeating-conic-gradient()> | <-legacy-gradient> ]",
"grid-line": "auto | <custom-ident> | [ [ <integer [-∞,-1]> | <integer [1,∞]> ] && <custom-ident>? ] | [ span && [ <integer [1,∞]> || <custom-ident> ] ]",
"hdr-color()": "color-hdr( [ <color> && <number [0,∞]>? ]#{2} )",
"highlight-name-selector": "'*' | <custom-ident>",
"horizontal-line-command": "hline [ to [ <length-percentage> | left | center | right | x-start | x-end ] | by <length-percentage> ]",
"hsl()": "[ <legacy-hsl-syntax> | <modern-hsl-syntax> ]",
"hsla()": "[ <legacy-hsla-syntax> | <modern-hsla-syntax> ]",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1483,6 +1483,17 @@
"failing": []
}
},
"highlight-name-selector": {
"type": "added",
"comment": "",
"syntax-b": "",
"syntax-a": "'*' | <custom-ident>",
"syntax-m": "'*' | <custom-ident>",
"tests": {
"passing": [],
"failing": []
}
},
"horizontal-line-command": {
"type": "added",
"comment": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,12 @@
"syntax-a": "color-hdr( [ <color> && <number [0,∞]>? ]#{2} )",
"comment": ""
},
"highlight-name-selector": {
"type": "added",
"syntax-b": "",
"syntax-a": "'*' | <custom-ident>",
"comment": ""
},
"horizontal-line-command": {
"type": "added",
"syntax-b": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,9 @@
"hdr-color()": {
"syntax": "color-hdr( [ <color> && <number [0,∞]>? ]#{2} )"
},
"highlight-name-selector": {
"syntax": "'*' | <custom-ident>"
},
"historical-lig-values": {
"syntax": "[ historical-ligatures | no-historical-ligatures ]"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-tape/dist/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin-packs/postcss-preset-env/FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The `ID` listed is the key for PostCSS Preset Env configuration in your project.
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/container-rule-prelude-list.svg" height="18">](https://cssdb.org/#container-rule-prelude-list) | `container-rule-prelude-list` | `@container` prelude list | [example](https://preset-env.cssdb.org/features/#container-rule-prelude-list) | [docs](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-container-rule-prelude-list#readme) |
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/content-alt-text.svg" height="18">](https://cssdb.org/#content-alt-text) | `content-alt-text` | Alt text for `content` | [example](https://preset-env.cssdb.org/features/#content-alt-text) | [docs](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-content-alt-text#readme) |
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/contrast-color-function.svg" height="18">](https://cssdb.org/#contrast-color-function) | `contrast-color-function` | `contrast-color()` Function | [example](https://preset-env.cssdb.org/features/#contrast-color-function) | [docs](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-contrast-color-function#readme) |
| | `custom-functions` | | | |
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/custom-functions.svg" height="18">](https://cssdb.org/#custom-functions) | `custom-functions` | `@function` rule | [example](https://preset-env.cssdb.org/features/#custom-functions) | [docs](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-functions#readme) |
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/custom-media-queries.svg" height="18">](https://cssdb.org/#custom-media-queries) | `custom-media-queries` | Custom Media Queries | [example](https://preset-env.cssdb.org/features/#custom-media-queries) | [docs](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-media#readme) |
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/custom-properties.svg" height="18">](https://cssdb.org/#custom-properties) | `custom-properties` | Custom Properties | [example](https://preset-env.cssdb.org/features/#custom-properties) | [docs](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-properties#readme) |
| [<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/custom-selectors.svg" height="18">](https://cssdb.org/#custom-selectors) | `custom-selectors` | Custom Selectors | [example](https://preset-env.cssdb.org/features/#custom-selectors) | [docs](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-selectors#readme) |
Expand Down
4 changes: 2 additions & 2 deletions plugin-packs/postcss-preset-env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@
"@csstools/postcss-trigonometric-functions": "^5.0.9",
"@csstools/postcss-unset-value": "^5.0.0",
"autoprefixer": "^10.6.1",
"browserslist": "^4.29.0",
"browserslist": "^4.29.3",
"css-blank-pseudo": "^8.0.2",
"css-has-pseudo": "^8.0.2",
"css-prefers-color-scheme": "^11.0.1",
"cssdb": "^8.10.0",
"cssdb": "^8.12.0",
"postcss-attribute-case-insensitive": "^8.0.2",
"postcss-clamp": "^4.1.0",
"postcss-color-functional-notation": "^8.0.15",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,8 @@
color-5: rgba(148, 0, 122, 0.65);
color-5: color(display-p3 0.54692 0 0.47541 / 0.65);
color-6: rgba(179, 0, 255, 0.65);
color-7: color-mix(in hsl, red);
color-8: color-mix(in srgb, red, lime, blue);
color-7: rgb(255, 0, 0);
color-8: rgb(85, 85, 85);
}

.gradients-interpolation-method {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,8 @@
}

.alpha {
color-1: alpha(from rgba(188, 101, 59, 0.2) / calc(alpha + 0.1));
--color-2: alpha(from rgba(188, 101, 59, 0.2) / calc(alpha + 0.1));
color-1: rgba(188, 101, 59, 0.3);
--color-2: rgba(188, 101, 59, 0.3);
}

.ic-unit {
Expand Down
128 changes: 128 additions & 0 deletions plugin-packs/postcss-preset-env/test/postcss-functions.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,158 +14,286 @@
result: color(display-p3 0.1 0.1 0.1);
}

.color-function {
color: --color-function();
}

@function --color-function-var() {
--local: color(display-p3 0.1 0.1 0.1);

result: var(--local);
}

.color-function-var {
color: --color-function-var();
}

@function --lab-function() {
result: lab(40% 56.6 39);
}

.lab-function {
color: --lab-function();
}

@function --lab-function-var() {
--local: lab(40% 56.6 39);

result: var(--local);
}

.lab-function-var {
color: --lab-function-var();
}

@function --oklab-function() {
result: oklch(60% 0.150 0);
}

.oklab-function {
color: --oklab-function();
}

@function --oklab-function-var() {
--local: oklch(60% 0.150 0);

result: var(--local);
}

.oklab-function-var {
color: --oklab-function-var();
}

@function --hwb-function() {
result: hwb(0 60% 40% / var(--alpha));
}

.hwb-function {
color: --hwb-function();
}

@function --hwb-function-var() {
--local: hwb(0 60% 40% / var(--alpha));

result: var(--local);
}

.hwb-function-var {
color: --hwb-function-var();
}

@function --color-functional-notation() {
result: rgb(255 0 0 / var(--alpha-50));
}

.color-functional-notation {
color: --color-functional-notation();
}

@function --color-functional-notation-var() {
--local: rgb(255 0 0 / var(--alpha-50));

result: var(--local);
}

.color-functional-notation-var {
color: --color-functional-notation-var();
}

@function --color-mix-function() {
result: color-mix(in lch, purple 50%, plum 50%);
}

.color-mix-function {
color: --color-mix-function();
}

@function --color-mix-function-var() {
--local: color-mix(in lch, purple 50%, plum 50%);

result: var(--local);
}

.color-mix-function-var {
color: --color-mix-function-var();
}

@function --relative-color-syntax() {
result: rgb(from blue r g b);
}

.relative-color-syntax {
color: --relative-color-syntax();
}

@function --relative-color-syntax-var() {
--local: rgb(from blue r g b);

result: var(--local);
}

.relative-color-syntax-var {
color: --relative-color-syntax-var();
}

@function --double-position-gradients() {
result: linear-gradient(90deg, black 25% 50%, blue 50% 75%);
}

.double-position-gradients {
background-image: --double-position-gradients();
}

@function --double-position-gradients-var() {
--local: linear-gradient(90deg, black 25% 50%, blue 50% 75%);

result: var(--local);
}

.double-position-gradients-var {
background-image: --double-position-gradients-var();
}

@function --gradients-interpolation-method() {
result: linear-gradient(in oklch 90deg, black 25% 50%, blue 50% 75%);
}

.gradients-interpolation-method {
background-image: --gradients-interpolation-method();
}

@function --gradients-interpolation-method-var() {
--local: linear-gradient(in oklch 90deg, black 25% 50%, blue 50% 75%);

result: var(--local);
}

.gradients-interpolation-method-var {
background-image: --gradients-interpolation-method-var();
}

@function --image-function() {
result: image(red);
}

.image-function {
background-image: --image-function();
}

@function --image-function-var() {
--local: image(red);

result: var(--local);
}

.image-function-var {
background-image: --image-function-var();
}

@function --image-set-function() {
result: image-set(url(img/test.png) 1x, url(img/test-2x.png) 2x);
}

.image-set-function {
background-image: --image-set-function();
}

@function --image-set-function-var() {
--local: image-set(url(img/test.png) 1x, url(img/test-2x.png) 2x);

result: var(--local);
}

.image-set-function-var {
background-image: --image-set-function-var();
}

@function --ic-unit() {
result: 2ic;
}

.ic-unit {
text-indent: --ic-unit();
}

@function --ic-unit-var() {
--local: 2ic;

result: var(--local);
}

.ic-unit-var {
text-indent: --ic-unit-var();
}

@function --logical-viewport-units() {
result: 2vi;
}

.logical-viewport-units {
width: --logical-viewport-units();
}

@function --logical-viewport-units-var() {
--local: 2vi;

result: var(--local);
}

.logical-viewport-units-var {
width: --logical-viewport-units-var();
}

@function --gamut-mapping() {
result: oklch(60% 0.4 0);
}

.gamut-mapping {
color: --gamut-mapping();
}

@function --gamut-mapping-var() {
--local: oklch(60% 0.4 0);

result: var(--local);
}

.gamut-mapping-var {
color: --gamut-mapping-var();
}

@function --system-ui-font-family() {
result: system-ui;
}

.system-ui-font-family {
font-family: --system-ui-font-family();
}

@function --system-ui-font-family-var() {
--local: system-ui;

result: var(--local);
}

.system-ui-font-family-var {
font-family: --system-ui-font-family-var();
}

@function --custom-properties() {
result: var(--color-fallback);
}

.custom-properties {
color: --custom-properties();
}

@function --custom-properties-var() {
--local: var(--color-fallback);

result: var(--local);
}

.custom-properties-var {
color: --custom-properties-var();
}
Loading
Loading