librsvg source for verification 2026-05-22
7
rsvg/tests/fixtures/reftests/svg2-reftests/bug913-gaussian-blur-nonpositive-ref.svg
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="400" height="400">
|
||||
<g>
|
||||
<rect x="100" y="100" width="50" height="50" fill="lime"/>
|
||||
<rect x="200" y="100" width="50" height="50" fill="lime"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 260 B |
19
rsvg/tests/fixtures/reftests/svg2-reftests/bug913-gaussian-blur-nonpositive.svg
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
width="400" height="400">
|
||||
<filter id="filter" filterUnits="objectBoundingBox" x="-10%" y="-10%" width="120%" height="120%">
|
||||
<!-- First, swap the red and green channels (turn the red rectangle into green) -->
|
||||
<feColorMatrix type="matrix"
|
||||
values="0 1 0 0 0
|
||||
1 0 0 0 0
|
||||
0 0 1 0 0
|
||||
0 0 0 1 0"/>
|
||||
|
||||
<!-- Second, no-op blur because stdDeviation is negative-->
|
||||
<feGaussianBlur stdDeviation="-1 -1"/>
|
||||
</filter>
|
||||
|
||||
<g filter="url(#filter)">
|
||||
<rect x="100" y="100" width="50" height="50" fill="red"/>
|
||||
<rect x="200" y="100" width="50" height="50" fill="red"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 773 B |
4
rsvg/tests/fixtures/reftests/svg2-reftests/ellipse-auto-rx-ry-ref.svg
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
|
||||
<!-- Empty, since an ellipse with auto rx/ry resolves to one with rx=ry=0 -->
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 192 B |
5
rsvg/tests/fixtures/reftests/svg2-reftests/ellipse-auto-rx-ry.svg
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
|
||||
<!-- Test that the rx/ry properties, as they both default to "auto", will resolve to 0 -->
|
||||
<ellipse cx="50%" cy="50%" fill="lime"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 248 B |
5
rsvg/tests/fixtures/reftests/svg2-reftests/ellipse-single-auto-rx-ry-ref.svg
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
|
||||
<ellipse cx="25%" cy="50%" rx="10" ry="10" fill="lime"/>
|
||||
<ellipse cx="75%" cy="50%" rx="10" ry="10" fill="lime"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 230 B |
8
rsvg/tests/fixtures/reftests/svg2-reftests/ellipse-single-auto-rx-ry.svg
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
|
||||
<!-- Test that if only one of the rx/ry properties defaults to "auto", it
|
||||
resolves to the computed value of the other one - yielding a circle.
|
||||
-->
|
||||
<ellipse cx="25%" cy="50%" rx="10" fill="lime"/>
|
||||
<ellipse cx="75%" cy="50%" ry="10" fill="lime"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 372 B |
13
rsvg/tests/fixtures/reftests/svg2-reftests/image-rendering-985-ref.svg
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="777" height="480">
|
||||
<!-- Original from Wikimedia Commons, in the public domain.
|
||||
https://commons.wikimedia.org/wiki/File:Gay_Pride_Flag.svg
|
||||
|
||||
Modified to have width/height instead of a viewBox.
|
||||
-->
|
||||
<path fill="#770088" d="M0 0h777v480H0z"/>
|
||||
<path fill="#004CFF" d="M0 0h777v400H0z"/>
|
||||
<path fill="#028121" d="M0 0h777v320H0z"/>
|
||||
<path fill="#FFEE00" d="M0 0h777v240H0z"/>
|
||||
<path fill="#FF8D00" d="M0 0h777v160H0z"/>
|
||||
<path fill="#E50000" d="M0 0h777v80H0z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 536 B |
11
rsvg/tests/fixtures/reftests/svg2-reftests/image-rendering-985.svg
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="777" height="480">
|
||||
<!-- We want to test that image-rendering="pixelated" produces the
|
||||
rainbow flag with plain stripes. The file
|
||||
rainbow-flag-pixels.png is a tiny 1x6 pixel image, so we
|
||||
stretch it but ask for it to not be smoothed - this produces
|
||||
"pixelated" stripes, which is what we want.
|
||||
-->
|
||||
<image href="rainbow-flag-pixels.png" width="777" height="480"
|
||||
preserveAspectRatio="none"
|
||||
image-rendering="pixelated"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 521 B |
4
rsvg/tests/fixtures/reftests/svg2-reftests/isolation-ref.svg
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
|
||||
<rect width="100%" height="100%" fill="lime"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 161 B |
7
rsvg/tests/fixtures/reftests/svg2-reftests/isolation.svg
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
|
||||
<rect width="100%" height="100%" fill="lime"/>
|
||||
<g style="isolation: isolate;">
|
||||
<rect width="50%" height="50%" fill="lime" style="mix-blend-mode: difference;"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 287 B |
3
rsvg/tests/fixtures/reftests/svg2-reftests/mask-and-opacity-ref.svg
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg">
|
||||
<circle cx="200" cy="200" r="200" fill="lime" opacity="0.5"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 137 B |
7
rsvg/tests/fixtures/reftests/svg2-reftests/mask-and-opacity.svg
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg">
|
||||
<mask id="mask">
|
||||
<circle cx="200" cy="200" r="200" fill="white"/>
|
||||
</mask>
|
||||
|
||||
<rect width="400" height="400" fill="lime" opacity="0.5" mask="url(#mask)"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 235 B |
BIN
rsvg/tests/fixtures/reftests/svg2-reftests/rainbow-flag-pixels.png
vendored
Normal file
|
After Width: | Height: | Size: 89 B |