Last active
October 26, 2016 13:11
-
-
Save kizu/b858218ff715b9b493ab4b93de89ec4b to your computer and use it in GitHub Desktop.
Testing empty values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Testing empty values */ | |
.test:before { content: attr(class); } | |
.test { | |
border: var(--bar) solid; | |
} | |
.test_valid { | |
--bar: ; | |
} | |
.test_invalid { | |
--bar:; | |
} | |
.test_defined { | |
--bar: 10px; | |
} | |
.test_fallback_valid { | |
--bar: var(--foo, ) | |
} | |
.test_fallback_invalid { | |
--bar: var(--foo,) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p class="test test_notDeclared"></p> | |
<p class="test test_invalid"></p> | |
<p class="test test_valid"></p> | |
<p class="test test_valid test_defined"></p> | |
<p class="test test_fallback_valid"></p> | |
<p class="test test_fallback_invalid"></p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment