librsvg source for verification 2026-05-22
17
rsvg/tests/fixtures/reftests/svg2/bug743-fe-drop-shadow-ref.svg
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
|
||||
<filter id="drop-shadow" filterUnits="userSpaceOnUse">
|
||||
<feGaussianBlur in="SourceAlpha" stdDeviation="5 10"/>
|
||||
<feOffset dx="5" dy="10" result="offsetblur"/>
|
||||
<feFlood flood-color="black" flood-opacity="0.5"/>
|
||||
<feComposite in2="offsetblur" operator="in"/>
|
||||
<feMerge>
|
||||
<feMergeNode/>
|
||||
<feMergeNode in="SourceGraphic"/>
|
||||
</feMerge>
|
||||
</filter>
|
||||
|
||||
<rect x="0" y="0" width="100%" height="100%" fill="white"/>
|
||||
|
||||
<rect x="50" y="50" width="50" height="50" fill="blue" stroke="magenta" stroke-width="6" filter="url(#drop-shadow)"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 691 B |
10
rsvg/tests/fixtures/reftests/svg2/bug743-fe-drop-shadow.svg
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
|
||||
<filter id="drop-shadow" filterUnits="userSpaceOnUse">
|
||||
<feDropShadow dx="5" dy="10" stdDeviation="5 10" flood-color="black" flood-opacity="0.5"/>
|
||||
</filter>
|
||||
|
||||
<rect x="0" y="0" width="100%" height="100%" fill="white"/>
|
||||
|
||||
<rect x="50" y="50" width="50" height="50" fill="blue" stroke="magenta" stroke-width="6" filter="url(#drop-shadow)"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 477 B |
BIN
rsvg/tests/fixtures/reftests/svg2/gradient-01-b-ref.png
vendored
Normal file
|
After Width: | Height: | Size: 229 KiB |
137
rsvg/tests/fixtures/reftests/svg2/gradient-01-b.svg
vendored
Normal file
@@ -0,0 +1,137 @@
|
||||
<svg id="svg-root"
|
||||
width="100%" height="100%" viewBox="0 0 1000 5000"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||
<defs id="defs">
|
||||
<!-- Only cx/cy/r for a plain SVG1.1-like gradient. -->
|
||||
<radialGradient
|
||||
id="plain_svg11_gradient"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
|
||||
cx="500" cy="500" r="200">
|
||||
<stop style="stop-color:#aa88ff" offset="0%"/>
|
||||
<stop style="stop-color:#ffddcc" offset="50%"/>
|
||||
<stop style="stop-color:#bbffee" offset="100%"/>
|
||||
</radialGradient>
|
||||
|
||||
|
||||
<!-- cx/cy/r/fx/fy with the focus point inside the circle, for a "full" SVG1.1 gradient. -->
|
||||
<radialGradient
|
||||
id="full_svg11_gradient"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
|
||||
cx="500" cy="1500" r="200"
|
||||
fx="600" fy="1600">
|
||||
<stop style="stop-color:#aa88ff" offset="0%"/>
|
||||
<stop style="stop-color:#ffddcc" offset="50%"/>
|
||||
<stop style="stop-color:#bbffee" offset="100%"/>
|
||||
</radialGradient>
|
||||
|
||||
|
||||
<!-- cx/cy/r/fx/fy with the focus point outside the circle. -->
|
||||
<radialGradient
|
||||
id="full_svg11_outside_gradient"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
|
||||
cx="500" cy="2500" r="200"
|
||||
fx="800" fy="2500">
|
||||
<stop style="stop-color:#aa88ff" offset="0%"/>
|
||||
<stop style="stop-color:#ffddcc" offset="50%"/>
|
||||
<stop style="stop-color:#bbffee" offset="100%"/>
|
||||
</radialGradient>
|
||||
|
||||
|
||||
<!-- cx/cy/r/fx/fy/fr inside the circle. -->
|
||||
<radialGradient
|
||||
id="svg2_inside_gradient"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
|
||||
cx="500" cy="3500" r="200"
|
||||
fx="600" fy="3600" fr="50">
|
||||
<stop style="stop-color:#aa88ff" offset="0%"/>
|
||||
<stop style="stop-color:#ffddcc" offset="50%"/>
|
||||
<stop style="stop-color:#bbffee" offset="100%"/>
|
||||
</radialGradient>
|
||||
|
||||
|
||||
<!-- cx/cy/r/fx/fy/fr outside the circle. -->
|
||||
<radialGradient
|
||||
id="svg2_outside_gradient"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
|
||||
cx="500" cy="4500" r="200"
|
||||
fx="800" fy="4500" fr="50">
|
||||
<stop style="stop-color:#aa88ff" offset="0%"/>
|
||||
<stop style="stop-color:#ffddcc" offset="50%"/>
|
||||
<stop style="stop-color:#bbffee" offset="100%"/>
|
||||
</radialGradient>
|
||||
</defs>
|
||||
<g id="layer1">
|
||||
<rect
|
||||
id="rec1" style="fill:url(#plain_svg11_gradient)"
|
||||
width="900" height="800"
|
||||
x="50" y="100" />
|
||||
|
||||
<rect
|
||||
id="rec2" style="fill:url(#full_svg11_gradient)"
|
||||
width="900" height="800"
|
||||
x="50" y="1100" />
|
||||
|
||||
<rect
|
||||
id="rec3" style="fill:url(#full_svg11_outside_gradient)"
|
||||
width="900" height="800"
|
||||
x="50" y="2100" />
|
||||
|
||||
<rect
|
||||
id="rec4" style="fill:url(#svg2_inside_gradient)"
|
||||
width="900" height="800"
|
||||
x="50" y="3100" />
|
||||
|
||||
<rect
|
||||
id="rec5" style="fill:url(#svg2_outside_gradient)"
|
||||
width="900" height="800"
|
||||
x="50" y="4100" />
|
||||
|
||||
|
||||
<circle
|
||||
style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
|
||||
id="circle1"
|
||||
cx="500" cy="500" r="200" />
|
||||
<circle
|
||||
style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
|
||||
id="circle2"
|
||||
cx="500" cy="1500" r="200" />
|
||||
<circle
|
||||
style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
|
||||
id="circle2_2"
|
||||
cx="600" cy="1600" r="1" />
|
||||
<circle
|
||||
style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
|
||||
id="circle3"
|
||||
cx="500" cy="2500" r="200" />
|
||||
<circle
|
||||
style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
|
||||
id="circle3_2"
|
||||
cx="800" cy="2500" r="1" />
|
||||
<circle
|
||||
style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
|
||||
id="circle4"
|
||||
cx="500" cy="3500" r="200" />
|
||||
<circle
|
||||
style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
|
||||
id="circle4_2"
|
||||
cx="600" cy="3600" r="50" />
|
||||
<circle
|
||||
style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
|
||||
id="circle5"
|
||||
cx="500" cy="4500" r="200" />
|
||||
<circle
|
||||
style="fill:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke:#000000;stroke-opacity:1"
|
||||
id="circle5_2"
|
||||
cx="800" cy="4500" r="50" />
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 4.5 KiB |
BIN
rsvg/tests/fixtures/reftests/svg2/mix-blend-mode-ref.png
vendored
Normal file
|
After Width: | Height: | Size: 24 KiB |
1751
rsvg/tests/fixtures/reftests/svg2/mix-blend-mode.svg
vendored
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
rsvg/tests/fixtures/reftests/svg2/multi-filter-ref.png
vendored
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
22
rsvg/tests/fixtures/reftests/svg2/multi-filter.svg
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<svg width="123" height="114" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<filter id="filter1">
|
||||
<feGaussianBlur stdDeviation="3"/>
|
||||
</filter>
|
||||
<filter id="filter2">
|
||||
<feColorMatrix type="hueRotate" values="45"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<metadata id="metadata5">image/svg+xml</metadata>
|
||||
<g>
|
||||
<title>background</title>
|
||||
<rect fill="none" id="canvas_background" height="116" width="125" y="-1" x="-1"/>
|
||||
</g>
|
||||
<g>
|
||||
<title>Layer 1</title>
|
||||
<g id="layer1">
|
||||
<rect fill="#0000ff" fill-rule="evenodd" stroke-width="0.26458" id="rect833" width="73.38349" height="60.49095" x="8.5901" y="12.87481"/>
|
||||
<ellipse fill="#ff0000" fill-rule="evenodd" stroke-width="0.26458" filter="url(#filter1) url(#filter2)" id="path835" cx="67.3905" cy="70.02157" rx="37.57762" ry="22.7273"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 808 B |
BIN
rsvg/tests/fixtures/reftests/svg2/paint-order-ref.png
vendored
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
6
rsvg/tests/fixtures/reftests/svg2/paint-order.svg
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="750" height="450">
|
||||
<rect height="300" width="1000" fill="#98fb98"/>
|
||||
<rect height="300" width="1000" y="300" fill="#87cefa"/>
|
||||
<path d="M 200 300 H 1000" stroke="#deb887" stroke-width="37.5"/>
|
||||
<path d="M -200 -100 a 100 100 0 0 1 100 -100 h 200 a 100 100 0 0 1 100 100 v 200 a 100 100 0 0 1 -100 100 h -200 a 100 100 0 0 1 -100 -100 z" stroke="#deb887" stroke-width="125" fill="white" paint-order="stroke fill" transform="matrix(0.6 0 0 0.6 200 300)"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 548 B |
BIN
rsvg/tests/fixtures/reftests/svg2/text-paint-order-ref.png
vendored
Normal file
|
After Width: | Height: | Size: 23 KiB |
12
rsvg/tests/fixtures/reftests/svg2/text-paint-order.svg
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="600" height="200">
|
||||
<defs>
|
||||
<text id="hello" style='font: bold 80px sans-serif;' stroke-width="8">
|
||||
<tspan x="10" y="80" stroke="green" fill="midnightblue">Hello</tspan>
|
||||
<tspan x="250" y="80" stroke="lime" fill="orange">World!</tspan>
|
||||
</text>
|
||||
</defs>
|
||||
|
||||
<use href="#hello" style="paint-order: normal;"/>
|
||||
<use href="#hello" style="paint-order: stroke fill;" transform="translate(0, 100)"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 504 B |