You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ Topics included/covered
63
63
[Using CSS Variables](#15-using-css-variables)
64
64
- 1.6. [CSS Variables vs Preprocessor Variables](#16-css-variables-vs-preprocessor-variables) | [Difference Between CSS Variables and Preprocessor Variables](#16-difference-between-css-variables-and-preprocessor-variables)
65
65
- 1.7. [CSS Variables with JavaScript](#17-css-variables-with-javascript)
- Any CSS variables defined in the stylesheet can be `accessed` by using `var()` function
915
+
- The CSS `var()` function can be used to insert the value of a custom property or a CSS variable
916
+
- The var() function cannot be used in any property names, selectors or anything else besides property values setting or providing fallback value support
-**`<custom-name>`**: **Required** Parameter. It's the custom property's name (must start with two dashes)
923
+
-**`<value>`**: **Optional**. The fallback value. Used only if the custom property is invalid or not defined or not found in stylesheet context (fallback support)
0 commit comments