Skip to content

Commit 5a3eac1

Browse files
authored
add supports/plugin data for gradient interpolation and color-mix (#285)
* add supports data for gradient interpolation and color-mix * change log and bundled with updates * populatedb * Update CHANGELOG.md * Update CHANGELOG.md
1 parent ae97b32 commit 5a3eac1

File tree

5 files changed

+118
-26
lines changed

5 files changed

+118
-26
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changes to cssdb
22

3+
### Unreleased (patch)
4+
5+
- Updated support data for `color-mix`
6+
- Updated support data for `gradients-interpolation-method`
7+
38
### 7.5.1 (March 24, 2023)
49

510
- Fixed potentially old generated files (patch)

cssdb.json

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -321,11 +321,18 @@
321321
"android": "111",
322322
"chrome": "111",
323323
"edge": "111",
324-
"opera": "97"
324+
"opera": "97",
325+
"ios_saf": "16.2",
326+
"safari": "16.2"
325327
},
326328
"example": "p {\n color: color-mix(in lch, purple 50%, plum 50%);\n}",
327-
"polyfills": [],
328-
"vendors_implementations": 1
329+
"polyfills": [
330+
{
331+
"type": "PostCSS Plugin",
332+
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-mix-function"
333+
}
334+
],
335+
"vendors_implementations": 2
329336
},
330337
{
331338
"id": "color-mod-function",
@@ -758,10 +765,22 @@
758765
"description": "Define the interpolation method for gradients",
759766
"specification": "https://www.w3.org/TR/css-images-4/#color-interpolation",
760767
"stage": 2,
761-
"browser_support": {},
768+
"browser_support": {
769+
"and_chr": "111",
770+
"android": "111",
771+
"chrome": "111",
772+
"edge": "111",
773+
"ios_saf": "16.2",
774+
"safari": "16.2"
775+
},
762776
"example": ".pie_chart {\n background-image: conic-gradient(in oklch, yellowgreen 40%, gold 0deg 75%, #f06 0deg);\n}",
763-
"polyfills": [],
764-
"vendors_implementations": 0
777+
"polyfills": [
778+
{
779+
"type": "PostCSS Plugin",
780+
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gradients-interpolation-method"
781+
}
782+
],
783+
"vendors_implementations": 2
765784
},
766785
{
767786
"id": "gray-function",
@@ -840,10 +859,6 @@
840859
{
841860
"type": "PostCSS Plugin",
842861
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/css-has-pseudo"
843-
},
844-
{
845-
"type": "Experimental Library",
846-
"link": "https://github.com/csstools/postcss-plugins/tree/main/experimental/css-has-pseudo"
847862
}
848863
],
849864
"vendors_implementations": 2

cssdb.mjs

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -321,11 +321,18 @@ export default [
321321
"android": "111",
322322
"chrome": "111",
323323
"edge": "111",
324-
"opera": "97"
324+
"opera": "97",
325+
"ios_saf": "16.2",
326+
"safari": "16.2"
325327
},
326328
"example": "p {\n color: color-mix(in lch, purple 50%, plum 50%);\n}",
327-
"polyfills": [],
328-
"vendors_implementations": 1
329+
"polyfills": [
330+
{
331+
"type": "PostCSS Plugin",
332+
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-mix-function"
333+
}
334+
],
335+
"vendors_implementations": 2
329336
},
330337
{
331338
"id": "color-mod-function",
@@ -758,10 +765,22 @@ export default [
758765
"description": "Define the interpolation method for gradients",
759766
"specification": "https://www.w3.org/TR/css-images-4/#color-interpolation",
760767
"stage": 2,
761-
"browser_support": {},
768+
"browser_support": {
769+
"and_chr": "111",
770+
"android": "111",
771+
"chrome": "111",
772+
"edge": "111",
773+
"ios_saf": "16.2",
774+
"safari": "16.2"
775+
},
762776
"example": ".pie_chart {\n background-image: conic-gradient(in oklch, yellowgreen 40%, gold 0deg 75%, #f06 0deg);\n}",
763-
"polyfills": [],
764-
"vendors_implementations": 0
777+
"polyfills": [
778+
{
779+
"type": "PostCSS Plugin",
780+
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gradients-interpolation-method"
781+
}
782+
],
783+
"vendors_implementations": 2
765784
},
766785
{
767786
"id": "gray-function",
@@ -840,10 +859,6 @@ export default [
840859
{
841860
"type": "PostCSS Plugin",
842861
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/css-has-pseudo"
843-
},
844-
{
845-
"type": "Experimental Library",
846-
"link": "https://github.com/csstools/postcss-plugins/tree/main/experimental/css-has-pseudo"
847862
}
848863
],
849864
"vendors_implementations": 2

cssdb.settings.json

Lines changed: 56 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,25 @@
232232
"css.types.color['color-mix']"
233233
],
234234
"browser_support": {},
235+
"browser_support_overrides": {
236+
"ios_saf": {
237+
"from": null,
238+
"to": "16.2",
239+
"bug": "https://github.com/mdn/browser-compat-data/pull/19245"
240+
},
241+
"safari": {
242+
"from": null,
243+
"to": "16.2",
244+
"bug": "https://github.com/mdn/browser-compat-data/pull/19245"
245+
}
246+
},
235247
"example": "p {\n color: color-mix(in lch, purple 50%, plum 50%);\n}",
236-
"polyfills": []
248+
"polyfills": [
249+
{
250+
"type": "PostCSS Plugin",
251+
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-mix-function"
252+
}
253+
]
237254
},
238255
{
239256
"id": "color-mod-function",
@@ -586,8 +603,45 @@
586603
"specification": "https://www.w3.org/TR/css-images-4/#color-interpolation",
587604
"stage": 2,
588605
"browser_support": {},
606+
"browser_support_overrides": {
607+
"and_chr": {
608+
"from": null,
609+
"to": "111",
610+
"bug": "https://github.com/mdn/browser-compat-data/pull/19244"
611+
},
612+
"android": {
613+
"from": null,
614+
"to": "111",
615+
"bug": "https://github.com/mdn/browser-compat-data/pull/19244"
616+
},
617+
"chrome": {
618+
"from": null,
619+
"to": "111",
620+
"bug": "https://github.com/mdn/browser-compat-data/pull/19244"
621+
},
622+
"edge": {
623+
"from": null,
624+
"to": "111",
625+
"bug": "https://github.com/mdn/browser-compat-data/pull/19244"
626+
},
627+
"ios_saf": {
628+
"from": null,
629+
"to": "16.2",
630+
"bug": "https://github.com/mdn/browser-compat-data/pull/19244"
631+
},
632+
"safari": {
633+
"from": null,
634+
"to": "16.2",
635+
"bug": "https://github.com/mdn/browser-compat-data/pull/19244"
636+
}
637+
},
589638
"example": ".pie_chart {\n background-image: conic-gradient(in oklch, yellowgreen 40%, gold 0deg 75%, #f06 0deg);\n}",
590-
"polyfills": []
639+
"polyfills": [
640+
{
641+
"type": "PostCSS Plugin",
642+
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gradients-interpolation-method"
643+
}
644+
]
591645
},
592646
{
593647
"id": "gray-function",
@@ -643,10 +697,6 @@
643697
{
644698
"type": "PostCSS Plugin",
645699
"link": "https://github.com/csstools/postcss-plugins/tree/main/plugins/css-has-pseudo"
646-
},
647-
{
648-
"type": "Experimental Library",
649-
"link": "https://github.com/csstools/postcss-plugins/tree/main/experimental/css-has-pseudo"
650700
}
651701
]
652702
},

src/components/feature-polyfill.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,21 @@ const presetEnvPlugins = [
1010
'clamp',
1111
'color-function',
1212
'color-functional-notation',
13+
'color-mix',
1314
'custom-media-queries',
1415
'custom-properties',
1516
'custom-selectors',
1617
'dir-pseudo-class',
1718
'display-two-values',
1819
'double-position-gradients',
1920
'environment-variables',
21+
'float-clear-logical-values',
2022
'focus-visible-pseudo-class',
2123
'focus-within-pseudo-class',
2224
'font-format-keywords',
2325
'font-variant-property',
2426
'gap-properties',
27+
'gradients-interpolation-method',
2528
'has-pseudo-class',
2629
'hexadecimal-alpha-notation',
2730
'hwb-function',
@@ -30,6 +33,9 @@ const presetEnvPlugins = [
3033
'is-pseudo-class',
3134
'lab-function',
3235
'logical-properties-and-values',
36+
'logical-resize',
37+
'logical-viewport-units',
38+
'media-queries-aspect-ratio-number-values',
3339
'media-query-ranges',
3440
'nested-calc',
3541
'nesting-rules',
@@ -41,6 +47,7 @@ const presetEnvPlugins = [
4147
'place-properties',
4248
'prefers-color-scheme-query',
4349
'rebeccapurple-color',
50+
'scope-pseudo-class',
4451
'stepped-value-functions',
4552
'system-ui-font-family',
4653
'text-decoration-shorthand',

0 commit comments

Comments
 (0)