Last active
December 3, 2020 02:54
-
-
Save endash/c132c61121a9347011a599263f35190d to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>mask-image bug demo</title> | |
<style> | |
div { | |
width: 24px; | |
height: 24px; | |
} | |
.foo { | |
-webkit-mask-image: url(https://gist.githubusercontent.com/endash/c132c61121a9347011a599263f35190d/raw/ad92ab75ab346db0f5ef2d71488cebcea6765426/sprite.svg#foo-usage); | |
-webkit-mask-size: 24px 24px; | |
background-color: black; | |
} | |
.bar { | |
-webkit-mask-image: url(https://gist.githubusercontent.com/endash/c132c61121a9347011a599263f35190d/raw/ad92ab75ab346db0f5ef2d71488cebcea6765426/sprite.svg#bar-usage); | |
-webkit-mask-size: 24px 24px; | |
background-color: black; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="foo"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment