| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd"> |
| <svg id="svg" viewBox="0 0 300 300" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| |
| <!-- All additive types except AnimatedPath are tested here --> |
| <defs> |
| <marker id="marker" viewBox="0 0 10 10" markerWidth="4" markerHeight="3" refX="1" refY="5" orient="-45deg"> |
| <polyline id="polyline" points="0,0 10,5 0,10 1,5" fill="green"/> |
| </marker> |
| |
| <filter id="filter"> |
| <feConvolveMatrix id="feConvolveMatrix" kernelUnitLength="20 30" kernelMatrix="0 1 0 0 1 0 0 1 0" divisor="37.5" order="6 6" targetX="5" preserveAlpha="false"/> |
| </filter> |
| </defs> |
| |
| <!-- Non-additive types AnimatedBoolean, AnimatedEnumeration, AnimatedPreserveAspectRatio, AnimatedString are tested in non-additive-type-by-animation.svg --> |
| |
| <path id="path" d="M45,50 L55,50" transform="rotate(45)" stroke-width="10" stroke="green" marker-end="url(#marker)"/> |
| <rect id="rect" y="0" width="100" height="100" fill="black" filter="url(#filter)"/> |
| <text id="text" x="50" y="50" dy="5 -10 10 -10">ABCD</text> |
| |
| <!-- AnimatedAngle --> |
| <animate id="an1" xlink:href="#marker" attributeName="orient" begin="0s" dur="4s" by="45deg" fill="freeze"/> |
| |
| <!-- AnimatedColor --> |
| <animateColor xlink:href="#rect" attributeName="fill" begin="0s" dur="4s" by="green" fill="freeze"/> |
| |
| <!-- AnimatedLength --> |
| <animate xlink:href="#rect" attributeName="y" begin="0s" dur="4s" by="100" fill="freeze"/> |
| |
| <!-- AnimatedLengthList --> |
| <animate xlink:href="#text" attributeName="dy" begin="0s" dur="4s" by="-10 20 -20 20" fill="freeze"/> |
| |
| <!-- AnimatedNumberOptionalNumber --> |
| <animate xlink:href="#feConvolveMatrix" attributeName="kernelUnitLength" begin="0s" dur="4s" by="-10 -20" fill="freeze"/> |
| |
| <!-- AnimatedNumber --> |
| <animate xlink:href="#feConvolveMatrix" attributeName="divisor" begin="0s" dur="4s" by="-17.5" fill="freeze"/> |
| |
| <!-- AnimatedNumberList --> |
| <animate xlink:href="#feConvolveMatrix" attributeName="kernelMatrix" begin="0s" dur="4s" by="2 1 3 2 1 3 2 1 3" fill="freeze"/> |
| |
| <!-- AnimatedIntegerOptionalInteger --> |
| <animate xlink:href="#feConvolveMatrix" attributeName="order" begin="0s" dur="4s" by="-3 -3" fill="freeze"/> |
| |
| <!-- AnimatedInteger --> |
| <animate xlink:href="#feConvolveMatrix" attributeName="targetX" begin="0s" dur="4s" by="-4" fill="freeze"/> |
| |
| <!-- AnimatedPoints --> |
| <animate xlink:href="#polyline" attributeName="points" begin="0s" dur="4s" by="0,0 10,5 0,10 1,5" fill="freeze"/> |
| |
| <!-- AnimatedRect --> |
| <animate xlink:href="#svg" attributeName="viewBox" begin="0s" dur="4s" by="0 0 -100 -100" fill="freeze"/> |
| |
| <!-- AnimatedTransformList --> |
| <animateTransform xlink:href="#path" attributeName="transform" type="rotate" begin="0s" dur="4s" by="-45" fill="freeze"/> |
| |
| </svg> |