Skip to content

Instantly share code, notes, and snippets.

@vancura
Created October 8, 2013 09:21
Show Gist options
  • Save vancura/6882006 to your computer and use it in GitHub Desktop.
Save vancura/6882006 to your computer and use it in GitHub Desktop.
A Pen by Václav Vančura.
<div id="tester">Testing</div>
var div = document.createElement('div');
div.style.webkitBackgroundClip = "text";
var text = div.style.cssText.indexOf('text');
document.getElementById('tester').innerHTML = 'Tested: background-clip ' + (text > 0 ? '<span style="color: green">IS</span>' : '<span style="color: red">IS NOT</span>') + ' supported by your browser.';
@import "compass";
body {
background: black;
color: #eee;
margin: 20px;
}
span {
font-weight: bold;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment