1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
3 <svg version=
"1.1" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" id=
"svg-root" baseProfile=
"basic" width=
"100%" height=
"100%" viewBox=
"0 0 480 360">
4 <g id=
"test-body-content" transform=
"translate(50 50) scale(.5) rotate(30)">
6 <font horiz-adv-x=
"313">
7 <!-- Converted from Larabie Anglepoise by Batik ttf2svg -->
8 <font-face font-family=
"larabie-anglepoise" units-per-em=
"1000" panose-1=
"0 0 4 0 0 0 0 0 0 0" ascent=
"703" descent=
"-300" alphabetic=
"0"/>
9 <missing-glyph horiz-adv-x=
"500" d=
"M63 0V700H438V0H63ZM125 63H375V638H125V63Z"/>
10 <glyph unicode=
"S" glyph-name=
"S" horiz-adv-x=
"385" d=
"M371 1H29V144H264Q264 151 264 166Q265 180 265 188Q265 212 249 212H132Q83 212 55 247Q29 279 29 329V566H335V422H136V375Q136 360 144 356Q148 355 168 355H279Q327 355 352 309Q371 273 371 221V1Z"/>
11 <glyph unicode=
"V" glyph-name=
"V" horiz-adv-x=
"351" d=
"M365 563L183 -33L0 563H101L183 296L270 563H365Z"/>
12 <glyph unicode=
"G" glyph-name=
"G" horiz-adv-x=
"367" d=
"M355 1H18V564H355V420H125V144H248V211H156V355H355V1Z"/>
13 <hkern g1=
"V" g2=
"G" k=
"-40"/>
16 <text font-family=
"Arial" font-size=
"14" x=
"10" y=
"20">Test for mask support
</text>
17 <!-- Draw a red rectangle in the background -->
18 <rect x=
"10" y=
"30" width=
"100" height=
"260" fill=
"red"/>
19 <!-- Apply a gradient ramp based opacity -->
20 <mask id=
"mask1" maskUnits=
"userSpaceOnUse" x=
"60" y=
"50" width=
"100" height=
"60">
22 <linearGradient gradientUnits=
"userSpaceOnUse" id=
"Grad1" x1=
"60" y1=
"50" x2=
"60" y2=
"120">
23 <stop stop-color=
"white" stop-opacity=
"1" offset=
"0"/>
24 <stop stop-color=
"white" stop-opacity=
"0.5" offset=
"1"/>
27 <rect x=
"60" y=
"50" width=
"100" height=
"60" fill=
"url(#Grad1)"/>
29 <rect x=
"60" y=
"50" width=
"100" height=
"60" fill=
"lime" mask=
"url(#mask1)"/>
30 <text font-family=
"Arial" font-size=
"12" x=
"200" y=
"65">Mask with linear gradient from
</text>
31 <text font-family=
"Arial" font-size=
"12" x=
"200" y=
"80">opacity=
1 to opactity=
0.5</text>
32 <!-- Simulate a uniform opacity using a mask -->
33 <mask id=
"mask2" maskUnits=
"userSpaceOnUse" x=
"60" y=
"120" width=
"100" height=
"30">
34 <rect x=
"60" y=
"120" width=
"100" height=
"30" fill-opacity=
"0.5" fill=
"white"/>
36 <rect x=
"60" y=
"120" width=
"100" height=
"30" fill=
"lime" mask=
"url(#mask2)"/>
37 <text font-family=
"Arial" font-size=
"12" x=
"200" y=
"135">Mask with uniform opacity of
0.5</text>
38 <!-- Apply a uniform opacity -->
39 <rect x=
"60" y=
"160" width=
"100" height=
"30" fill=
"lime" fill-opacity=
"0.5"/>
40 <text font-family=
"Arial" font-size=
"12" x=
"200" y=
"175">Rectangle with uniform opacity of
0.5</text>
41 <!-- Apply a mask to text -->
42 <mask id=
"mask3" maskUnits=
"userSpaceOnUse" x=
"60" y=
"200" width=
"200" height=
"100">
43 <rect x=
"60" y=
"200" width=
"200" height=
"25" fill=
"white" fill-opacity=
"0.5"/>
44 <rect x=
"60" y=
"225" width=
"200" height=
"25" fill=
"white" fill-opacity=
"0.2"/>
45 <rect x=
"60" y=
"250" width=
"200" height=
"25" fill=
"white" fill-opacity=
"1"/>
46 <rect x=
"60" y=
"275" width=
"200" height=
"25" fill=
"white" fill-opacity=
"0.7"/>
48 <text x=
"60" y=
"280" font-family=
"larabie-anglepoise" font-size=
"110" fill=
"lime" mask=
"url(#mask3)">SVG
</text>
49 <text font-family=
"Arial" font-size=
"12" x=
"200" y=
"225">Text with mask containing rectangles
</text>
50 <text font-family=
"Arial" font-size=
"12" x=
"200" y=
"240">of various opacities
</text>
51 <text id=
"revision" x=
"10" y=
"340" font-size=
"40" stroke=
"none" fill=
"black">$Revision:
1.7 $
</text>
52 <rect id=
"test-frame" x=
"1" y=
"1" width=
"478" height=
"358" fill=
"none" stroke=
"#000000"/>