Skip to content

Commit

Permalink
Update list
Browse files Browse the repository at this point in the history
  • Loading branch information
Mouvedia authored and niksy committed Apr 22, 2024
1 parent 3bb1214 commit 565315c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
21 changes: 17 additions & 4 deletions generate-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,24 @@ const references = [
return functions;
};
}),
// Legacy values
// Experimental, legacy and removed functions
() => {
return ['-webkit-gradient'].map((value) =>
value.replace(new RegExp(prefixes.join('|')), '')
);
return [
// https://www.webkit.org/blog/175/introducing-css-gradients/
'-webkit-gradient',
'color-stop',
'from',
'to',
// https://chromestatus.com/feature/5124922471874560
'anchor',
'anchor-size',
// https://developer.mozilla.org/en-US/docs/Web/CSS/font-palette/palette-mix
'palette-mix',
// https://web.archive.org/web/20221206074145/https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hsla
'hsla',
// https://web.archive.org/web/20221222183535/https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgba
'rgba'
].map((value) => value.replace(new RegExp(prefixes.join('|')), ''));
}
];

Expand Down
6 changes: 6 additions & 0 deletions index.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[
"abs",
"acos",
"anchor",
"anchor-size",
"annotation",
"asin",
"atan",
Expand All @@ -15,6 +17,7 @@
"color",
"color-contrast",
"color-mix",
"color-stop",
"conic-gradient",
"contrast",
"cos",
Expand All @@ -30,6 +33,7 @@
"exp",
"fit-content",
"format",
"from",
"gradient",
"grayscale",
"hsl",
Expand Down Expand Up @@ -62,6 +66,7 @@
"opacity",
"ornaments",
"paint",
"palette-mix",
"path",
"perspective",
"polygon",
Expand Down Expand Up @@ -115,6 +120,7 @@
"target-counter",
"target-counters",
"target-text",
"to",
"translate",
"translate3d",
"translateX",
Expand Down

0 comments on commit 565315c

Please sign in to comment.