Skip to content

Instantly share code, notes, and snippets.

@aarongustafson
Last active October 16, 2015 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aarongustafson/d93fe2e887261309c03a to your computer and use it in GitHub Desktop.
Save aarongustafson/d93fe2e887261309c03a to your computer and use it in GitHub Desktop.
@supports IE TestDrive Code Samples
b {
background-color: black;
color: white;
}
@media only screen {
b {
background-color: white;
color: black;
}
}
b {
background-color: black;
color: white;
background-color: rgba(255, 255, 255, 1);
color: rgba(0, 0, 0, 1);
}
b {
background-color: black;
color: white;
}
b:only-child {
background-color: white;
color: black;
}
b {
background-color: black;
color: white;
}
@supports ( background: linear-gradient(0deg,white,white) ) {
b {
background: linear-gradient(0deg,white,white);
color: black;
}
}
@shrunyan
Copy link

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)”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment