Last active
August 29, 2015 14:06
-
-
Save MoOx/28808ebe3a9e4bd897ef to your computer and use it in GitHub Desktop.
postcss-custom-properties test for full support. Is this correct ?
This file contains 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
:root, | |
.light { | |
--color: black; | |
} | |
.dark, | |
.light--inverted { | |
--color: white; | |
} | |
p { | |
background: var(--color); | |
} | |
a, | |
.link { | |
color: var(--color); | |
} | |
#important { | |
--color: red | |
} |
This file contains 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, | |
.light p, | |
p.light {background: black;} | |
.dark p, | |
p.dark, | |
.light--inverted p, | |
p.light--inverted {background: white;} | |
#important p, | |
p#important {background: red;} | |
a, | |
.light a, | |
a.light, | |
.link, | |
.light .link, | |
.link.light {color: black;} | |
.dark a, | |
a.dark, | |
.light--inverted a, | |
a.light--inverted, | |
.dark .link, | |
.link.dark, | |
.light--inverted .link, | |
.link.light--inverted {color: white;} | |
#important a, | |
a#important, | |
#important .link, | |
.link#important {color: red;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here I think I got something http://jsbin.com/hunuy/2/edit