diff options
Diffstat (limited to 'rsvg/tests/fixtures/reftests/bugs/bug373-gradient-userspaceonuse.svg')
-rw-r--r-- | rsvg/tests/fixtures/reftests/bugs/bug373-gradient-userspaceonuse.svg | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/rsvg/tests/fixtures/reftests/bugs/bug373-gradient-userspaceonuse.svg b/rsvg/tests/fixtures/reftests/bugs/bug373-gradient-userspaceonuse.svg new file mode 100644 index 00000000..218e5f79 --- /dev/null +++ b/rsvg/tests/fixtures/reftests/bugs/bug373-gradient-userspaceonuse.svg @@ -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> |