Created
December 28, 2015 13:52
-
-
Save FelixAkk/f102be8836eb5ab853e3 to your computer and use it in GitHub Desktop.
SVG masking support minimal testcase
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
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| <svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"> | |
| <symbol id="mySymbol" viewBox="0 0 40 40"> | |
| <defs> | |
| <circle id="disk" cx="20" cy="20" r="20"/> | |
| </defs> | |
| <mask id="circular-mask" fill="white"> | |
| <use xlink:href="#disk"/> | |
| </mask> | |
| <use fill="#7E57C2" xlink:href="#disk"/> | |
| <path d="M20,30 30,20 40,30 40,40 30,40 Z" fill-opacity="0.3" fill="#000000" mask="url(#circular-mask)"/> | |
| </symbol> | |
| </svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment