librsvg source for verification 2026-05-22

This commit is contained in:
2026-05-22 16:45:08 +08:00
commit 75af7ac721
2138 changed files with 161177 additions and 0 deletions

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 B