Skip to content

Instantly share code, notes, and snippets.

@GPHemsley
Last active November 19, 2018 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GPHemsley/f489796b94cf0f653179de88c2e1b02c to your computer and use it in GitHub Desktop.
Save GPHemsley/f489796b94cf0f653179de88c2e1b02c to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Test</title>
<style type="text/css">
.box {
width: 5em;
height: 5em;
border: 1px solid black;
margin: 1em;
float: left;
}
#css-rrggbbaa {
background-color: red;
background-color: #00FF00FF;
}
#css-read-only {
background-color: red;
}
#css-read-only:read-only {
background-color: lime;
}
#css-read-write {
background-color: red;
}
#css-read-write:not(:read-write) {
background-color: lime;
}
#css-cross-fade {
background-color: red;
background-image: cross-fade( 25% lime, lime, lime, lime 25% );
}
</style>
</head>
<body>
<div class="box" id="css-rrggbbaa">
</div>
<div class="box" id="css-read-only">
</div>
<div class="box" id="css-read-write">
</div>
<div class="box" id="css-cross-fade">
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment