fixed a typo (#34170)

This commit is contained in:
Prakhar Yadav 2018-11-02 19:54:58 +00:00 committed by Aditya
parent 50ecd8ad40
commit 6ce41d6203

View File

@ -8,7 +8,7 @@ videoUrl: 'https://scrimba.com/c/c6bDNfp'
## Description
<section id='description'>
When using your variable as a CSS property value, you can attach a fallback value that your browser will revert to if the given variable is invalid.
<strong>Note:</strong> This fallback is not used to increase browser compatibilty, and it will not work on IE browsers. Rather, it is used so that the browser has a color to display if it cannot find your variable.
<strong>Note:</strong> This fallback is not used to increase browser compatibility, and it will not work on IE browsers. Rather, it is used so that the browser has a color to display if it cannot find your variable.
Here's how you do it:
<blockquote>background: var(--penguin-skin, black);</blockquote>
This will set background to black if your variable wasn't set.