| 1 |
<svg version="1.1" baseProfile="tiny" id="svg-root" |
| 2 |
width="100%" height="100%" viewBox="0 0 480 360" |
| 3 |
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" |
| 14 |
template-version="1.4" reviewer="CM" author="CL" status="accepted" |
| 15 |
version="$Revision: 1.4 $" testname="$RCSfile: animate-elem-89-t.svg,v $"> |
| 16 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://dev.w3.org/SVG/profiles/1.1F2/errata/errata.html#value_spacing_of_keySpline_syntax"> |
| 17 |
<p> |
| 18 |
Tests clarification of value spacing of keySpline syntax; whitespace, or commas with optional whitespace, are allowed. |
| 19 |
</p> |
| 20 |
<p> |
| 21 |
Test possible values for 'calcMode="spline"', with both commas, whitespace, and mixed separators |
| 22 |
</p> |
| 23 |
<p> |
| 24 |
Six animations (three sets of two) have been defined. The three green ones on the left show rectangles which get smaller. The three orange ones on the right show rectangles of constant size, which move. |
| 25 |
The black text and grey ruler lines help show the sizes and movement of the rectangles over time. |
| 26 |
|
| 27 |
</p> |
| 28 |
</d:testDescription> |
| 29 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 30 |
<p> |
| 31 |
Run the test. No interaction required. |
| 32 |
</p> |
| 33 |
</d:operatorScript> |
| 34 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 35 |
<p> |
| 36 |
The test is passed if the bottom edge of all six animated rectangles move together in sync. |
| 37 |
</p> |
| 38 |
</d:passCriteria> |
| 39 |
</d:SVGTestCase> |
| 40 |
<title id="test-title">$RCSfile: animate-elem-89-t.svg,v $</title> |
| 41 |
<defs> |
| 42 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 43 |
<font-face-src> |
| 44 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 45 |
</font-face-src> |
| 46 |
</font-face> |
| 47 |
</defs> |
| 48 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 49 |
<g font-family="SVGFreeSansASCII" font-size="20"> |
| 50 |
|
| 51 |
|
| 52 |
<g transform="translate(10,50)"> |
| 53 |
<text x="0" y="203">0 sec.</text> |
| 54 |
<text x="0" y="170">3 sec. </text> |
| 55 |
<text x="0" y="114">6 sec. </text> |
| 56 |
<text x="3" y="3">9+ sec. </text> |
| 57 |
<g stroke="#AAA" stroke-width="4"> |
| 58 |
<line x1="70" y1="200" x2="450" y2="200"/> |
| 59 |
<line x1="70" y1="167" x2="450" y2="167"/> |
| 60 |
<line x1="70" y1="111" x2="450" y2="111"/> |
| 61 |
<line x1="70" y1="0" x2="450" y2="0"/> |
| 62 |
</g> |
| 63 |
</g> |
| 64 |
|
| 65 |
|
| 66 |
<g transform="translate(60,50)"> |
| 67 |
|
| 68 |
<rect x="140" y="-10" width="50" height="210" fill="rgb(34, 139, 34)" stroke="#555" stroke-width="4"> |
| 69 |
<animate attributeName="height" calcMode="spline" keySplines="0,0,1,1;0,0,1,1;.75,0,0,.75" values="210;177;121;10" begin="0s" dur="9s" fill="freeze"/> |
| 70 |
|
| 71 |
</rect> |
| 72 |
<rect x="90" y="-10" width="50" height="210" fill="rgb(50, 205, 50)" stroke="#555" stroke-width="4"> |
| 73 |
<animate attributeName="height" calcMode="spline" keySplines="0 0 1 1;0 0 1 1;.75 0 0 .75" values="210;177;121;10" begin="0s" dur="9s" fill="freeze"/> |
| 74 |
|
| 75 |
</rect> |
| 76 |
<rect x="40" y="-10" width="50" height="210" fill="rgb(154, 205, 50)" stroke="#555" stroke-width="4"> |
| 77 |
<animate attributeName="height" calcMode="spline" keySplines="0 , 0 , 1 , 1;0 , 0 , 1 , 1;.75 , 0 , 0 , .75" values="210;177;121;10" begin="0s" dur="9s" fill="freeze"/> |
| 78 |
|
| 79 |
</rect> |
| 80 |
</g> |
| 81 |
|
| 82 |
|
| 83 |
<g transform="translate(250,50)"> |
| 84 |
|
| 85 |
<rect x="140" y="-10" width="60" height="10" fill="rgb(235, 110, 0)" stroke="#555" stroke-width="4"> |
| 86 |
<animateMotion calcMode="spline" keySplines="0,0,1,1;0,0,1,1;.75,0,0,.75" values="0,200; 0,167; 0,111; 0,0" begin="0s" dur="9s" fill="freeze"/> |
| 87 |
|
| 88 |
</rect> |
| 89 |
<rect x="90" y="-10" width="60" height="10" fill="rgb(255, 180, 30)" stroke="#555" stroke-width="4"> |
| 90 |
<animateMotion calcMode="spline" keySplines="0 0 1 1;0 0 1 1;.75 0 0 .75" values="0,200; 0 167; 0 111; 0 0" begin="0s" dur="9s" fill="freeze"/> |
| 91 |
|
| 92 |
</rect> |
| 93 |
<rect x="40" y="-10" width="60" height="10" fill="rgb(255, 220, 60)" stroke="#555" stroke-width="4"> |
| 94 |
<animateMotion calcMode="spline" keySplines="0 , 0 , 1 , 1;0 , 0 , 1 , 1;.75 , 0 , 0 , .75" values="0 , 200; 0 , 167; 0 , 111; 0 , 0" begin="0s" dur="9s" fill="freeze"/> |
| 95 |
|
| 96 |
</rect> |
| 97 |
</g> |
| 98 |
</g> |
| 99 |
</g> |
| 100 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 101 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.4 $</text> |
| 102 |
</g> |
| 103 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
</svg> |