| 1 |
<svg id="svg-root" width="100%" height="100%" |
| 2 |
viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" |
| 3 |
xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 4 |
<!--======================================================================--> |
| 5 |
<!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> |
| 6 |
<!--= Institute of Technology, European Research Consortium for =--> |
| 7 |
<!--= Informatics and Mathematics (ERCIM), Keio University). =--> |
| 8 |
<!--= All Rights Reserved. =--> |
| 9 |
<!--= See http://www.w3.org/Consortium/Legal/. =--> |
| 10 |
<!--======================================================================--> |
| 11 |
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" |
| 12 |
template-version="1.3" reviewer="AG" author="CM" status="accepted" |
| 13 |
version="$Revision: 1.7 $" testname="$RCSfile: painting-render-02-b.svg,v $"> |
| 14 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/painting.html#ColorInterpolationProperty"> |
| 15 |
<p> |
| 16 |
This tests that the 'color-interpolation' property is honored when |
| 17 |
alpha compositing is performed. |
| 18 |
</p> |
| 19 |
<p> |
| 20 |
The test slide consists of seven rectangular regions, |
| 21 |
each of which is filled with either a dark or light |
| 22 |
shade of gray. The 'color-interpolation' property |
| 23 |
is used on the rectangles to control whether a |
| 24 |
dark or light shade of gray appears. Text inside each |
| 25 |
rectangular region indicates whether the shade of gray |
| 26 |
should be dark or light. The top two rectangular regions |
| 27 |
are references against which the remaining five are to |
| 28 |
be compared. |
| 29 |
</p> |
| 30 |
</d:testDescription> |
| 31 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 32 |
<p> |
| 33 |
Run the test. No interaction required. |
| 34 |
</p> |
| 35 |
</d:operatorScript> |
| 36 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 37 |
<p> |
| 38 |
The test is passed if: |
| 39 |
</p> |
| 40 |
<ul> |
| 41 |
<li>all rectangles marked as "dark" have the same fill color,</li> |
| 42 |
<li>all rectangles marked as "light" have the same fill color,</li> |
| 43 |
<li>the rectangle marked "dark or light" has the same fill color |
| 44 |
as either the "dark" rectangles or the "light" rectangles, and</li> |
| 45 |
<li>the rendering matches the reference rendering, except for |
| 46 |
any differences in font used to render the text.</li> |
| 47 |
</ul> |
| 48 |
</d:passCriteria> |
| 49 |
</d:SVGTestCase> |
| 50 |
<title id="test-title">$RCSfile: painting-render-02-b.svg,v $</title> |
| 51 |
<defs> |
| 52 |
<font-face |
| 53 |
font-family="SVGFreeSansASCII" |
| 54 |
unicode-range="U+0-7F"> |
| 55 |
<font-face-src> |
| 56 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 57 |
</font-face-src> |
| 58 |
</font-face> |
| 59 |
</defs> |
| 60 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 61 |
|
| 62 |
<g transform='translate(90,10)'> |
| 63 |
<rect y='100' width='300' height='200'/> |
| 64 |
<g stroke='black' stroke-width='2'> |
| 65 |
<rect width='150' height='100' fill='#7F7F7F'/> |
| 66 |
<rect x='150' width='150' height='100' fill='#BBBBBB'/> |
| 67 |
<g fill='white' fill-opacity='0.5'> |
| 68 |
<rect y='100' width='100' height='100'/> |
| 69 |
<g color-interpolation='linearRGB'> |
| 70 |
<rect x='100' y='100' width='100' height='100' color-interpolation='linearRGB'/> |
| 71 |
<rect x='200' y='100' width='100' height='100' color-interpolation='sRGB'/> |
| 72 |
<rect y='200' width='150' height='100' color-interpolation='auto'/> |
| 73 |
<rect x='150' y='200' width='150' height='100' color-interpolation='inherit'/> |
| 74 |
</g> |
| 75 |
</g> |
| 76 |
</g> |
| 77 |
<g text-anchor='middle' transform='translate(0,5)'> |
| 78 |
<text x='75' y='50'>dark</text> |
| 79 |
<text x='225' y='50'>light</text> |
| 80 |
<text x='50' y='150'>dark</text> |
| 81 |
<text x='150' y='150'>light</text> |
| 82 |
<text x='250' y='150'>dark</text> |
| 83 |
<text x='75' y='250'>dark or light</text> |
| 84 |
<text x='225' y='250'>light</text> |
| 85 |
</g> |
| 86 |
</g> |
| 87 |
|
| 88 |
</g> |
| 89 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 90 |
<text id="revision" x="10" y="340" stroke="none" |
| 91 |
fill="black">$Revision: 1.7 $</text> |
| 92 |
</g> |
| 93 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| 94 |
<!-- comment out this watermark once the test is approved --> |
| 95 |
<!--<g id="draft-watermark"> |
| 96 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 97 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 98 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 99 |
</g>--> |
| 100 |
</svg> |