Debian Codegraph @

rsvg/tests/fixtures/reftests/filter-conv-kernel-matrix-length.svg

raw symbols SCIP
1 <svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"> <!-- -*- mode: nxml -*- -->
2
3 <!-- Tests for the number of entries in the kernelMatrix attribute; these should all be caught
4 as errors and the filter should be a no-op.
5 -->
6
7 <filter id="conv1">
8 <!-- too few -->
9 <feConvolveMatrix order="10 1" kernelMatrix="0 1 2 3 4 5 6 7 8"/>
10 </filter>
11
12 <filter id="conv2">
13 <!-- too many -->
14 <feConvolveMatrix order="10 1" kernelMatrix="0 1 2 3 4 5 6 7 8 9 10"/>
15 </filter>
16
17 <filter id="conv3">
18 <!-- exceeds limit for maximum number of elements -->
19 <feConvolveMatrix order="20 21" kernelMatrix=" 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
20 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
21 2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
22 3 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
23 4 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
24 5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
25 6 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
26 7 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
27 8 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
28 9 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
29 10 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
30 11 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
31 12 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
32 13 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
33 14 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
34 15 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
35 16 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
36 17 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
37 18 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
38 19 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
39 20 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
40 21 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19"/>
41 </filter>
42
43 <rect width="100%" height="100%" fill="white"/>
44
45 <rect x="0" y="0" width="10" height="10" fill="limegreen" filter="url(#conv1)"/>
46 <rect x="0" y="20" width="10" height="10" fill="limegreen" filter="url(#conv2)"/>
47 <rect x="0" y="40" width="10" height="10" fill="limegreen" filter="url(#conv3)"/>
48
49 </svg>