Last active
October 16, 2015 16:27
-
-
Save aarongustafson/d93fe2e887261309c03a to your computer and use it in GitHub Desktop.
@supports IE TestDrive Code Samples
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
b { | |
background-color: black; | |
color: white; | |
} | |
@media only screen { | |
b { | |
background-color: white; | |
color: black; | |
} | |
} |
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
b { | |
background-color: black; | |
color: white; | |
background-color: rgba(255, 255, 255, 1); | |
color: rgba(0, 0, 0, 1); | |
} |
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
b { | |
background-color: black; | |
color: white; | |
} | |
b:only-child { | |
background-color: white; | |
color: black; | |
} |
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
b { | |
background-color: black; | |
color: white; | |
} | |
@supports ( background: linear-gradient(0deg,white,white) ) { | |
b { | |
background: linear-gradient(0deg,white,white); | |
color: black; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://dev.modern.ie/testdrive/demos/@supports/
This page refers to the
rgba.css
gist and mentions the rgba opacity value improperly.All browsers will understand the background-color value “red”, but modern browsers that understand RGBa colors will apply a background color of green at 50% opacity as declared in “rgba(34, 132, 39, 0.5)”.