| 1 | <svg |
| 2 | xmlns='http://www.w3.org/2000/svg' |
| 3 | width='100' |
| 4 | height='100' |
| 5 | viewBox='0 0 480 360'> |
| 6 | <defs> |
| 7 | </defs> |
| 8 | <g |
| 9 | id='test-body-content'> |
| 10 | <defs> |
| 11 | <clipPath |
| 12 | id='emptyclip'> |
| 13 | </clipPath> |
| 14 | <clipPath |
| 15 | id='hiddenclip'> |
| 16 | <rect |
| 17 | visibility='hidden' |
| 18 | width='100' |
| 19 | height='100'> |
| 20 | </rect> |
| 21 | </clipPath> |
| 22 | <clipPath |
| 23 | id='displayclip'> |
| 24 | <rect |
| 25 | display='none' |
| 26 | width='100' |
| 27 | height='100'> |
| 28 | </rect> |
| 29 | </clipPath> |
| 30 | <clipPath |
| 31 | id='opacityclip'> |
| 32 | <rect |
| 33 | opacity='0' |
| 34 | width='100' |
| 35 | height='100'> |
| 36 | </rect> |
| 37 | </clipPath> |
| 38 | <clipPath |
| 39 | id='strokefillclip'> |
| 40 | <rect |
| 41 | fill='none' |
| 42 | stroke='none' |
| 43 | width='100' |
| 44 | height='100'> |
| 45 | </rect> |
| 46 | </clipPath> |
| 47 | <clipPath |
| 48 | id='strokewidthclip'> |
| 49 | <rect |
| 50 | stroke='rgb(0,0,0)' |
| 51 | stroke-width='80' |
| 52 | x='40' |
| 53 | y='40' |
| 54 | width='20' |
| 55 | height='20'> |
| 56 | </rect> |
| 57 | </clipPath> |
| 58 | <clipPath |
| 59 | id='strokeopacityclip'> |
| 60 | <rect |
| 61 | stroke='rgb(0,0,0)' |
| 62 | stroke-opacity='0' |
| 63 | stroke-width='80' |
| 64 | x='40' |
| 65 | y='40' |
| 66 | width='20' |
| 67 | height='20'> |
| 68 | </rect> |
| 69 | </clipPath> |
| 70 | <clipPath |
| 71 | id='fillopacityclip'> |
| 72 | <rect |
| 73 | fill-opacity='0' |
| 74 | width='100' |
| 75 | height='100'> |
| 76 | </rect> |
| 77 | </clipPath> |
| 78 | </defs> |
| 79 | <g |
| 80 | transform='scale(0.5, 0.5) translate(320, 200)'> |
| 81 | <rect |
| 82 | fill='rgb(0,255,0)' |
| 83 | width='100' |
| 84 | height='100'> |
| 85 | </rect> |
| 86 | <rect |
| 87 | clip-path='url(#emptyclip)' |
| 88 | fill='rgb(255,0,0)' |
| 89 | width='100' |
| 90 | height='100'> |
| 91 | </rect> |
| 92 | <g |
| 93 | transform='translate(110, 0)'> |
| 94 | <rect |
| 95 | fill='rgb(0,255,0)' |
| 96 | width='100' |
| 97 | height='100'> |
| 98 | </rect> |
| 99 | <rect |
| 100 | clip-path='url(#hiddenclip)' |
| 101 | fill='rgb(255,0,0)' |
| 102 | width='100' |
| 103 | height='100'> |
| 104 | </rect> |
| 105 | </g> |
| 106 | <g |
| 107 | transform='translate(220, 0)'> |
| 108 | <rect |
| 109 | fill='rgb(0,255,0)' |
| 110 | width='100' |
| 111 | height='100'> |
| 112 | </rect> |
| 113 | <rect |
| 114 | clip-path='url(#displayclip)' |
| 115 | fill='rgb(255,0,0)' |
| 116 | width='100' |
| 117 | height='100'> |
| 118 | </rect> |
| 119 | </g> |
| 120 | <g |
| 121 | transform='translate(0, 110)'> |
| 122 | <rect |
| 123 | fill='rgb(255,0,0)' |
| 124 | x='0.5' |
| 125 | y='0.5' |
| 126 | width='99' |
| 127 | height='99'> |
| 128 | </rect> |
| 129 | <rect |
| 130 | clip-path='url(#unknown)' |
| 131 | fill='rgb(0,255,0)' |
| 132 | width='100' |
| 133 | height='100'> |
| 134 | </rect> |
| 135 | </g> |
| 136 | <g |
| 137 | transform='translate(110, 110)'> |
| 138 | <rect |
| 139 | fill='rgb(255,0,0)' |
| 140 | x='0.5' |
| 141 | y='0.5' |
| 142 | width='99' |
| 143 | height='99'> |
| 144 | </rect> |
| 145 | <rect |
| 146 | clip-path='url(#opacityclip)' |
| 147 | fill='rgb(0,255,0)' |
| 148 | width='100' |
| 149 | height='100'> |
| 150 | </rect> |
| 151 | </g> |
| 152 | <g |
| 153 | transform='translate(220, 110)'> |
| 154 | <rect |
| 155 | fill='rgb(255,0,0)' |
| 156 | x='0.5' |
| 157 | y='0.5' |
| 158 | width='99' |
| 159 | height='99'> |
| 160 | </rect> |
| 161 | <rect |
| 162 | clip-path='url(#strokefillclip)' |
| 163 | fill='rgb(0,255,0)' |
| 164 | width='100' |
| 165 | height='100'> |
| 166 | </rect> |
| 167 | </g> |
| 168 | <g |
| 169 | transform='translate(0, 220)'> |
| 170 | <rect |
| 171 | fill='rgb(0,255,0)' |
| 172 | width='100' |
| 173 | height='100'> |
| 174 | </rect> |
| 175 | <rect |
| 176 | clip-path='url(#strokewidthclip)' |
| 177 | fill='rgb(255,0,0)' |
| 178 | width='100' |
| 179 | height='100'> |
| 180 | </rect> |
| 181 | <rect |
| 182 | fill='rgb(0,255,0)' |
| 183 | x='39' |
| 184 | y='39' |
| 185 | width='22' |
| 186 | height='22'> |
| 187 | </rect> |
| 188 | </g> |
| 189 | <g |
| 190 | transform='translate(110, 220)'> |
| 191 | <rect |
| 192 | fill='rgb(0,255,0)' |
| 193 | width='100' |
| 194 | height='100'> |
| 195 | </rect> |
| 196 | <rect |
| 197 | clip-path='url(#strokeopacityclip)' |
| 198 | fill='rgb(255,0,0)' |
| 199 | width='100' |
| 200 | height='100'> |
| 201 | </rect> |
| 202 | <rect |
| 203 | fill='rgb(0,255,0)' |
| 204 | x='39' |
| 205 | y='39' |
| 206 | width='22' |
| 207 | height='22'> |
| 208 | </rect> |
| 209 | </g> |
| 210 | <g |
| 211 | transform='translate(220, 220)'> |
| 212 | <rect |
| 213 | fill='rgb(255,0,0)' |
| 214 | x='0.5' |
| 215 | y='0.5' |
| 216 | width='99' |
| 217 | height='99'> |
| 218 | </rect> |
| 219 | <rect |
| 220 | clip-path='url(#fillopacityclip)' |
| 221 | fill='rgb(0,255,0)' |
| 222 | width='100' |
| 223 | height='100'> |
| 224 | </rect> |
| 225 | </g> |
| 226 | <rect |
| 227 | fill='none' |
| 228 | stroke='rgb(0,0,0)' |
| 229 | width='320' |
| 230 | height='320'> |
| 231 | </rect> |
| 232 | </g> |
| 233 | </g> |
| 234 | <g> |
| 235 | </g> |
| 236 | <rect |
| 237 | id='test-frame' |
| 238 | fill='none' |
| 239 | stroke='rgb(0,0,0)' |
| 240 | x='1' |
| 241 | y='1' |
| 242 | width='478' |
| 243 | height='358'> |
| 244 | </rect> |
| 245 | </svg> |