Skip to content

Commit

Permalink
minor fix: fix variable name (#32722)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyujie2002 authored Mar 18, 2024
1 parent 33b328b commit cb7fbf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/css_properties_and_values_api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit cb7fbf7

Please sign in to comment.