librsvg source for verification 2026-05-22
This commit is contained in:
39
rsvg/tests/fixtures/reftests/bugs/bug373-gradient-userspaceonuse.svg
vendored
Normal file
39
rsvg/tests/fixtures/reftests/bugs/bug373-gradient-userspaceonuse.svg
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!--
|
||||
We draw a horizontal and a vertical line, both with a gradient.
|
||||
Since gradientUnits="userSpaceOnUse", it does not matter that the
|
||||
lines have an empty bounding box, as would be the case for
|
||||
objectBoundingBox. Thus, the gradient *is* drawn (here, all green),
|
||||
instead of leaving the lines unstyled.
|
||||
-->
|
||||
<svg
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
version="1.1"
|
||||
x="0px"
|
||||
y="0px"
|
||||
width="200"
|
||||
height="200"
|
||||
viewBox="0 0 200 200"
|
||||
xml:space="preserve">
|
||||
<rect x="0" y="0" width="200" height="200" style="fill:blue" />
|
||||
<g>
|
||||
<radialGradient id="SVGID_19_" cx="100" cy="100" r="100" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" style="stop-color:green" />
|
||||
</radialGradient>
|
||||
<line
|
||||
x1="100"
|
||||
y1="0"
|
||||
x2="100"
|
||||
y2="200"
|
||||
style="fill:none;stroke:url(#SVGID_19_);stroke-width:2;stroke-miterlimit:10"
|
||||
/>
|
||||
<line
|
||||
x1="0"
|
||||
y1="100"
|
||||
x2="200"
|
||||
y2="100"
|
||||
style="fill:none;stroke:url(#SVGID_19_);stroke-width:2;stroke-miterlimit:10"
|
||||
/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
Reference in New Issue
Block a user