Debian Codegraph @

rsvg/tests/fixtures/reftests/bugs/bug590-mask-units.svg

raw symbols SCIP
1 <svg preserveAspectRatio="xMidYMid" viewBox="-70 -100 140 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2 <defs>
3 <!-- A square mask -->
4 <mask id="square-mask">
5 <rect fill="#ffffff" height="49" stroke="none" width="49" x="-49" y="24.5"/>
6 </mask>
7 </defs>
8 <g fill="none" stroke="#292d2f" stroke-width="0.14">
9 <!-- Black background rectangle -->
10 <rect fill="#292d2f" height="200" stroke="#292d2f" width="140" x="-70" y="-100"/>
11
12 <!-- Draw a filled white circle and apply a square mask to only show the bottom left 90 degree arc -->
13 <g mask="url(#square-mask)">
14 <g fill="#ffffff" stroke="none" transform="matrix(-1.8369701987210297e-16 -1 1 -1.8369701987210297e-16 -24.5 49)">
15 <circle cx="24.5" cy="24.5" r="49"/>
16 </g>
17 </g>
18
19 <!-- Magenta outline of the square mask -->
20 <rect stroke="#ff00ff" height="49" fill="none" width="49" x="-49" y="24.5"/>
21 <!-- Yellow outline of the entire circle to mask -->
22 <g fill="none" stroke="#ffff00" transform="matrix(-1.8369701987210297e-16 -1 1 -1.8369701987210297e-16 -24.5 49)">
23 <circle cx="24.5" cy="24.5" r="49" />
24 </g>
25 </g>
26 </svg>