-
-
Save pbroschwitz/749394bae6b3ffa96d00 to your computer and use it in GitHub Desktop.
Test for rebeccapurple, honoring Eric Meyer’s Daughter, Rebecca.
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
/** | |
* Test for rebeccapurple, honoring Eric Meyer’s Daughter, Rebecca. | |
* Currently works in WebKit nightlies, other implementations soon to follow. | |
*/ | |
background: red; | |
background: rebeccapurple; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
min-height: 100%; | |
text-align: center; | |
font: 300% Helvetica Neue, sans-serif; | |
color: white; | |
text-shadow: 0 -.05em .1em rgba(0,0,0,.3); |
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
<!-- content to be placed inside <body>…</body> --> |
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
var html = document.documentElement; | |
document.body.innerHTML = 'rebeccapurple ' + | |
(getComputedStyle(html).backgroundColor === 'rgb(102, 51, 153)'? '<strong>is</strong> supported!' : 'is not supported :(') |
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","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