From cb7fbf7d129fbcc912b7aa36ed270383dfddd4eb Mon Sep 17 00:00:00 2001 From: hanyujie2002 Date: Tue, 19 Mar 2024 07:22:29 +0800 Subject: [PATCH] minor fix: fix variable name (#32722) --- files/en-us/web/api/css_properties_and_values_api/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/api/css_properties_and_values_api/index.md b/files/en-us/web/api/css_properties_and_values_api/index.md index 49bcf838a66e674..0c1680a31553111 100644 --- a/files/en-us/web/api/css_properties_and_values_api/index.md +++ b/files/en-us/web/api/css_properties_and_values_api/index.md @@ -20,7 +20,7 @@ The **CSS Properties and Values API** — part of the [CSS Houdini](/en-US/docs/ ## Examples -The following will register a {{cssxref('--*', 'CSS custom property')}} named `--my-prop` using {{domxref('CSS/registerProperty_static', 'CSS.registerProperty')}} in [JavaScript](/en-US/docs/Web/JavaScript). `--my-prop` will use the CSS color syntax, it will have a default value of `#c0ffee`, and it will not inherit its value: +The following will register a {{cssxref('--*', 'CSS custom property')}} named `--my-color` using {{domxref('CSS/registerProperty_static', 'CSS.registerProperty')}} in [JavaScript](/en-US/docs/Web/JavaScript). `--my-color` will use the CSS color syntax, it will have a default value of `#c0ffee`, and it will not inherit its value: ```js window.CSS.registerProperty({