Debian Codegraph @

test_non_regression/fail/image/struct-image-03-t.svg

raw
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.4" reviewer="SVGWG" author="Chris Lilley" status="accepted"
13 version="$Revision: 1.5 $" testname="$RCSfile: struct-image-03-t.svg,v $">
14 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/struct.html#ImageElement">
15 <p>
16 This test verifies the support for gamma correction of displayed PNG
17 images.
18 </p>
19 </d:testDescription>
20 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
21 <p>
22 Run the test. No interaction required.
23 </p>
24 </d:operatorScript>
25 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
26 <p>
27 Several different images are displayed one above the other;
28 if gamma correction is correctly performed based on the values in
29 the gAMA chunk in the PNG file, the resulting displayed values are
30 the same in all of the files (except for rounding error, which gives
31 some artefacts at the right side of the lowest two images due to the
32 very high levels of gamma correction needed for this test)
33 </p>
34 </d:passCriteria>
35 </d:SVGTestCase>
36 <title id="test-title">$RCSfile: struct-image-03-t.svg,v $</title>
37 <defs>
38 <font-face
39 font-family="SVGFreeSansASCII"
40 unicode-range="U+0-7F">
41 <font-face-src>
42 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
43 </font-face-src>
44 </font-face>
45 </defs>
46 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
47 <rect x="23" y="13" width="434" height="224" stroke="none" fill="black" />
48 <image x="25" y="15" width="430" height="48" xlink:href="../images/gam030.png"/>
49 <image x="25" y="43" width="430" height="48" xlink:href="../images/gam045.png"/>
50 <image x="25" y="91" width="430" height="48" xlink:href="../images/gam056.png"/>
51 <image x="25" y="139" width="430" height="48" xlink:href="../images/gam100.png"/>
52 <image x="25" y="187" width="430" height="48" xlink:href="../images/gam200.png"/>
53 <text x="25" y="285" font-size="40">Gamma correction</text>
54 </g>
55 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
56 <text id="revision" x="10" y="340" stroke="none"
57 fill="black">$Revision: 1.5 $</text>
58 </g>
59 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
60 <!-- comment out this watermark once the test is approved -->
61 <!--<g id="draft-watermark">
62 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
63 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
64 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
65 </g>-->
66 </svg>