Revision control
Copy as Markdown
<?xml version="1.0" standalone="no"?>
<svg version="1.2" baseProfile="tiny" xml:id="svg-root" width="100%" height="100%"
<!--======================================================================-->
<!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, European Research Consortium for =-->
<!--= Informatics and Mathematics (ERCIM), Keio University). =-->
<!--= All Rights Reserved. =-->
<!--======================================================================-->
reviewer="NR" owner="AE" desc="Stop Opacity Attribute with Text" status="accepted"
approved="yes"
testname="$RCSfile: paint-grad-202-t.svg,v $" version="$Revision: 1.7 $">
<d:OperatorScript xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/1999/xhtml">
<p>Stop Opacity Attribute with Text</p>
<p>
There are three lines of text. For this test to pass each line of text must have the same gradient
from green to blue all set to a 'stop-opacity' of 0.4 . The reference rect at the bottom has a
similar gradient but with 'stop-opacity set to 1. The text of the poem should be lighter than
the reference line.
</p>
</d:OperatorScript>
</SVGTestCase>
<title xml:id="test-title">$RCSfile: paint-grad-202-t.svg,v $</title>
<defs>
<font-face
font-family="SVGFreeSansASCII"
unicode-range="U+0-7F">
<font-face-src>
<font-face-uri xlink:href="../images/SVGFreeSans.svg#ascii"/>
</font-face-src>
</font-face>
</defs>
<g xml:id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
<g fill="#555" text-anchor="middle">
<text fill="#000" x="240" y="30" xml:id="display-title">Stop Opacity Attribute with Text</text>
<g font-size="14">
<text x="240" y="50" xml:id="comment-1">All three lines of text must have the same transparent gradient - </text>
<text x="240" y="65" xml:id="comment-2">from green to blue, set at 0.4 'stop-opacity'. The reference rect at</text>
<text x="240" y="80" xml:id="comment-3">the bottom has a similar gradient but with 'stop-opacity set to 1.</text>
</g>
</g>
<defs>
<linearGradient xml:id="LinearGrad-transparent-z">
<stop stop-opacity="0.4" stop-color="green" offset="0.03"/>
<stop stop-opacity="0.4" stop-color="blue" offset="0.40"/>
<stop stop-opacity="0.4" stop-color="fuchsia" offset="0.66"/>
<stop stop-opacity="0.4" stop-color="purple" offset="0.98"/>
</linearGradient>
<linearGradient xml:id="LinearGrad-transparent">
<stop stop-opacity="0.4" stop-color="green" offset="0.43"/>
<stop stop-opacity="0.4" stop-color="blue" offset="0.98"/>
</linearGradient>
<linearGradient xml:id="LinearGrad-opaque">
<stop stop-opacity="1" stop-color="green" offset="0.43"/>
<stop stop-opacity="1" stop-color="blue" offset="0.98"/>
</linearGradient>
<g xml:id="poem">
<text x="0" y="0">old pond</text>
<text x="0" y="30">a frog leaps in -</text>
<text x="0" y="60">a moment after, silence</text>
</g>
</defs>
<use font-size="32" x="60" y="140" fill-opacity="1" fill="url(#LinearGrad-transparent)" xlink:href="#poem"/>
<rect x="60" y="217" width="360" height="15" fill="url(#LinearGrad-opaque)"/>
<rect x="15" y="217" width="450" height="15" fill="url(#LinearGrad-opaque)"/>
<text x="450" fill="#555" font-size="8" y="270" text-anchor="end">Frog Haiku by Matsuo Basho (1686), translated by Ross Figgins</text>
</g>
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
<text xml:id="revision" x="10" y="340" stroke="none"
fill="black">$Revision: 1.7 $</text>
</g>
<rect xml:id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
<!-- comment out this watermark once the test is approved -->
<!--<g xml:id="draft-watermark">
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
</g>-->
</svg>