Skip to content

Commit baf9906

Browse files
authored
css color : mixed_type_parameters (#374)
* css color : mixed_type_parameters * cleanup * reduce impact * tweak * prepare release
1 parent 44193a2 commit baf9906

File tree

6 files changed

+99
-77
lines changed

6 files changed

+99
-77
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+
### 7.11.2 (March 9, 2024)
4+
5+
- Updated `@mdn/browser-compat-data` to `5.5.14` (patch)
6+
- Take `mixed_type_parameters` into account for most color features.
7+
38
### 7.11.1 (February 26, 2024)
49

510
- Updated `@mdn/browser-compat-data` to `5.5.11` (patch)

cssdb.json

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,23 +1184,22 @@
11841184
"specification": "https://www.w3.org/TR/css-color-4/#funcdef-lab",
11851185
"stage": 2,
11861186
"browser_support": {
1187-
"and_chr": "111",
1187+
"and_chr": "116",
11881188
"and_ff": "113",
1189-
"android": "111",
1190-
"chrome": "111",
1191-
"edge": "111",
1189+
"android": "116",
1190+
"chrome": "116",
1191+
"edge": "116",
11921192
"firefox": "113",
1193-
"ios_saf": "15",
1194-
"op_mob": "75",
1195-
"opera": "97",
1196-
"safari": "15",
1197-
"samsung": "22.0"
1193+
"ios_saf": "16.2",
1194+
"op_mob": "78",
1195+
"opera": "102",
1196+
"safari": "16.2"
11981197
},
11991198
"docs": {
12001199
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/lab"
12011200
},
12021201
"example": "body {\n color: lab(80% 50 20);\n}",
1203-
"interoperable_at": 1683590400,
1202+
"interoperable_at": 1692576000,
12041203
"polyfills": [
12051204
{
12061205
"type": "PostCSS Plugin",
@@ -1216,23 +1215,22 @@
12161215
"specification": "https://www.w3.org/TR/css-color-4/#funcdef-lch",
12171216
"stage": 2,
12181217
"browser_support": {
1219-
"and_chr": "111",
1218+
"and_chr": "116",
12201219
"and_ff": "113",
1221-
"android": "111",
1222-
"chrome": "111",
1223-
"edge": "111",
1220+
"android": "116",
1221+
"chrome": "116",
1222+
"edge": "116",
12241223
"firefox": "113",
1225-
"ios_saf": "15",
1226-
"op_mob": "75",
1227-
"opera": "97",
1228-
"safari": "15",
1229-
"samsung": "22.0"
1224+
"ios_saf": "16.2",
1225+
"op_mob": "78",
1226+
"opera": "102",
1227+
"safari": "16.2"
12301228
},
12311229
"docs": {
12321230
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/lch"
12331231
},
12341232
"example": "body {\n color: lch(53% 105 40);\n}",
1235-
"interoperable_at": 1683590400,
1233+
"interoperable_at": 1692576000,
12361234
"polyfills": [
12371235
{
12381236
"type": "PostCSS Plugin",
@@ -1615,23 +1613,22 @@
16151613
"specification": "https://www.w3.org/TR/css-color-4/#specifying-oklab-oklch",
16161614
"stage": 2,
16171615
"browser_support": {
1618-
"and_chr": "111",
1616+
"and_chr": "116",
16191617
"and_ff": "113",
1620-
"android": "111",
1621-
"chrome": "111",
1622-
"edge": "111",
1618+
"android": "116",
1619+
"chrome": "116",
1620+
"edge": "116",
16231621
"firefox": "113",
1624-
"ios_saf": "15.4",
1625-
"op_mob": "75",
1626-
"opera": "97",
1627-
"safari": "15.4",
1628-
"samsung": "22.0"
1622+
"ios_saf": "16.2",
1623+
"op_mob": "78",
1624+
"opera": "102",
1625+
"safari": "16.2"
16291626
},
16301627
"docs": {
16311628
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/oklab"
16321629
},
16331630
"example": "p {\n color: oklab(72.322% -0.0465 -0.1150);\n color: oklch(72.322% 0.12403 247.996);\n}",
1634-
"interoperable_at": 1683590400,
1631+
"interoperable_at": 1692576000,
16351632
"polyfills": [
16361633
{
16371634
"type": "PostCSS Plugin",
@@ -1925,7 +1922,7 @@
19251922
},
19261923
{
19271924
"id": "relative-color-syntax",
1928-
"title": "Relative Color Syntax",
1925+
"title": "Relative Colors",
19291926
"description": "Modify existing colors using color functions",
19301927
"specification": "https://www.w3.org/TR/css-color-5/#relative-colors",
19311928
"stage": 2,

cssdb.mjs

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,23 +1184,22 @@ export default [
11841184
"specification": "https://www.w3.org/TR/css-color-4/#funcdef-lab",
11851185
"stage": 2,
11861186
"browser_support": {
1187-
"and_chr": "111",
1187+
"and_chr": "116",
11881188
"and_ff": "113",
1189-
"android": "111",
1190-
"chrome": "111",
1191-
"edge": "111",
1189+
"android": "116",
1190+
"chrome": "116",
1191+
"edge": "116",
11921192
"firefox": "113",
1193-
"ios_saf": "15",
1194-
"op_mob": "75",
1195-
"opera": "97",
1196-
"safari": "15",
1197-
"samsung": "22.0"
1193+
"ios_saf": "16.2",
1194+
"op_mob": "78",
1195+
"opera": "102",
1196+
"safari": "16.2"
11981197
},
11991198
"docs": {
12001199
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/lab"
12011200
},
12021201
"example": "body {\n color: lab(80% 50 20);\n}",
1203-
"interoperable_at": 1683590400,
1202+
"interoperable_at": 1692576000,
12041203
"polyfills": [
12051204
{
12061205
"type": "PostCSS Plugin",
@@ -1216,23 +1215,22 @@ export default [
12161215
"specification": "https://www.w3.org/TR/css-color-4/#funcdef-lch",
12171216
"stage": 2,
12181217
"browser_support": {
1219-
"and_chr": "111",
1218+
"and_chr": "116",
12201219
"and_ff": "113",
1221-
"android": "111",
1222-
"chrome": "111",
1223-
"edge": "111",
1220+
"android": "116",
1221+
"chrome": "116",
1222+
"edge": "116",
12241223
"firefox": "113",
1225-
"ios_saf": "15",
1226-
"op_mob": "75",
1227-
"opera": "97",
1228-
"safari": "15",
1229-
"samsung": "22.0"
1224+
"ios_saf": "16.2",
1225+
"op_mob": "78",
1226+
"opera": "102",
1227+
"safari": "16.2"
12301228
},
12311229
"docs": {
12321230
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/lch"
12331231
},
12341232
"example": "body {\n color: lch(53% 105 40);\n}",
1235-
"interoperable_at": 1683590400,
1233+
"interoperable_at": 1692576000,
12361234
"polyfills": [
12371235
{
12381236
"type": "PostCSS Plugin",
@@ -1615,23 +1613,22 @@ export default [
16151613
"specification": "https://www.w3.org/TR/css-color-4/#specifying-oklab-oklch",
16161614
"stage": 2,
16171615
"browser_support": {
1618-
"and_chr": "111",
1616+
"and_chr": "116",
16191617
"and_ff": "113",
1620-
"android": "111",
1621-
"chrome": "111",
1622-
"edge": "111",
1618+
"android": "116",
1619+
"chrome": "116",
1620+
"edge": "116",
16231621
"firefox": "113",
1624-
"ios_saf": "15.4",
1625-
"op_mob": "75",
1626-
"opera": "97",
1627-
"safari": "15.4",
1628-
"samsung": "22.0"
1622+
"ios_saf": "16.2",
1623+
"op_mob": "78",
1624+
"opera": "102",
1625+
"safari": "16.2"
16291626
},
16301627
"docs": {
16311628
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/oklab"
16321629
},
16331630
"example": "p {\n color: oklab(72.322% -0.0465 -0.1150);\n color: oklch(72.322% 0.12403 247.996);\n}",
1634-
"interoperable_at": 1683590400,
1631+
"interoperable_at": 1692576000,
16351632
"polyfills": [
16361633
{
16371634
"type": "PostCSS Plugin",
@@ -1925,7 +1922,7 @@ export default [
19251922
},
19261923
{
19271924
"id": "relative-color-syntax",
1928-
"title": "Relative Color Syntax",
1925+
"title": "Relative Colors",
19291926
"description": "Modify existing colors using color functions",
19301927
"specification": "https://www.w3.org/TR/css-color-5/#relative-colors",
19311928
"stage": 2,

cssdb.settings.json

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@
203203
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color"
204204
},
205205
"example": "p {\n color: color(display-p3 1 0.5 0);\n color: color(display-p3 1 0.5 0 / .5);\n}",
206-
"mdn_path": "css.types.color.color",
206+
"mdn_path": [
207+
"css.types.color.color",
208+
"css.types.color.color.mixed_type_parameters"
209+
],
207210
"polyfills": [
208211
{
209212
"type": "PostCSS Plugin",
@@ -747,7 +750,9 @@
747750
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hwb"
748751
},
749752
"example": "p {\n color: hwb(120 44% 50%);\n}",
750-
"mdn_path": "css.types.color.hwb",
753+
"mdn_path": [
754+
"css.types.color.hwb"
755+
],
751756
"polyfills": [
752757
{
753758
"type": "PostCSS Plugin",
@@ -842,7 +847,12 @@
842847
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/lab"
843848
},
844849
"example": "body {\n color: lab(80% 50 20);\n}",
845-
"mdn_path": "css.types.color.lab",
850+
"mdn_path": [
851+
"css.types.color.lab",
852+
"css.types.color.lab.mixed_type_parameters",
853+
"css.types.color.lch",
854+
"css.types.color.lch.mixed_type_parameters"
855+
],
846856
"polyfills": [
847857
{
848858
"type": "PostCSS Plugin",
@@ -861,7 +871,10 @@
861871
"mdn": "https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/lch"
862872
},
863873
"example": "body {\n color: lch(53% 105 40);\n}",
864-
"mdn_path": "css.types.color.lch",
874+
"mdn_path": [
875+
"css.types.color.lch",
876+
"css.types.color.lch.mixed_type_parameters"
877+
],
865878
"polyfills": [
866879
{
867880
"type": "PostCSS Plugin",
@@ -1223,7 +1236,9 @@
12231236
"example": "p {\n color: oklab(72.322% -0.0465 -0.1150);\n color: oklch(72.322% 0.12403 247.996);\n}",
12241237
"mdn_path": [
12251238
"css.types.color.oklab",
1226-
"css.types.color.oklch"
1239+
"css.types.color.oklab.mixed_type_parameters",
1240+
"css.types.color.oklch",
1241+
"css.types.color.oklch.mixed_type_parameters"
12271242
],
12281243
"polyfills": [
12291244
{
@@ -1398,20 +1413,28 @@
13981413
},
13991414
{
14001415
"id": "relative-color-syntax",
1401-
"title": "Relative Color Syntax",
1416+
"title": "Relative Colors",
14021417
"description": "Modify existing colors using color functions",
14031418
"specification": "https://www.w3.org/TR/css-color-5/#relative-colors",
14041419
"stage": 2,
14051420
"browser_support": {},
14061421
"mdn_path": [
14071422
"css.types.color.color.relative_syntax",
1423+
"css.types.color.color.mixed_type_parameters",
14081424
"css.types.color.hsl.relative_syntax",
1425+
"css.types.color.hsl.mixed_type_parameters",
14091426
"css.types.color.hwb.relative_syntax",
1427+
"css.types.color.hwb.mixed_type_parameters",
14101428
"css.types.color.lab.relative_syntax",
1429+
"css.types.color.lab.mixed_type_parameters",
14111430
"css.types.color.lch.relative_syntax",
1431+
"css.types.color.lch.mixed_type_parameters",
14121432
"css.types.color.oklab.relative_syntax",
1433+
"css.types.color.oklab.mixed_type_parameters",
14131434
"css.types.color.oklch.relative_syntax",
1414-
"css.types.color.rgb.relative_syntax"
1435+
"css.types.color.oklch.mixed_type_parameters",
1436+
"css.types.color.rgb.relative_syntax",
1437+
"css.types.color.rgb.mixed_type_parameters"
14151438
],
14161439
"docs": {},
14171440
"example": "p {\n color: lch(from peru calc(l * 0.8) c h);\n}",

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cssdb",
3-
"version": "7.11.1",
3+
"version": "7.11.2",
44
"type": "module",
55
"description": "A comprehensive list of CSS features and their positions in the process of becoming implemented web standards",
66
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
@@ -47,7 +47,7 @@
4747
"test:doc-links": "node tasks/check-doc-links.mjs"
4848
},
4949
"devDependencies": {
50-
"@mdn/browser-compat-data": "^5.5.13",
50+
"@mdn/browser-compat-data": "^5.5.14",
5151
"browserslist": "^4.22.3",
5252
"glob": "^10.3.7",
5353
"lodash.get": "^4.4.2",

0 commit comments

Comments
 (0)