| 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='clipCircle1'> |
| 13 | <circle |
| 14 | id='c1' |
| 15 | cx='100' |
| 16 | cy='100' |
| 17 | r='50'> |
| 18 | </circle> |
| 19 | </clipPath> |
| 20 | <clipPath |
| 21 | id='clipCircle2'> |
| 22 | <circle |
| 23 | id='c2' |
| 24 | cx='150' |
| 25 | cy='150' |
| 26 | r='50'> |
| 27 | </circle> |
| 28 | </clipPath> |
| 29 | <path |
| 30 | id='p1' |
| 31 | clip-rule='evenodd' |
| 32 | d='M 10 10 L 110 10 L 110 110 L 10 110 Z M 50 50 L 90 50 L 90 90 L 50 90 Z'> |
| 33 | </path> |
| 34 | <clipPath |
| 35 | id='clipRects1'> |
| 36 | <rect |
| 37 | x='50' |
| 38 | y='30' |
| 39 | width='25' |
| 40 | height='100'> |
| 41 | </rect> |
| 42 | <rect |
| 43 | clip-path='url(#clipTwoCircles)' |
| 44 | x='25' |
| 45 | y='50' |
| 46 | width='10' |
| 47 | height='10'> |
| 48 | </rect> |
| 49 | </clipPath> |
| 50 | <clipPath |
| 51 | id='clipTwoCircles'> |
| 52 | <use |
| 53 | href='#c1'> |
| 54 | </use> |
| 55 | <use |
| 56 | href='#c2'> |
| 57 | </use> |
| 58 | </clipPath> |
| 59 | <clipPath |
| 60 | id='clipInClip1'> |
| 61 | <use |
| 62 | clip-path='url(#clipCircle1)' |
| 63 | href='#c2'> |
| 64 | </use> |
| 65 | <use |
| 66 | href='#p1'> |
| 67 | </use> |
| 68 | </clipPath> |
| 69 | <clipPath |
| 70 | id='clipOnClip1' |
| 71 | clip-path='url(#clipCircle1)'> |
| 72 | <use |
| 73 | href='#c2'> |
| 74 | </use> |
| 75 | <use |
| 76 | href='#p1'> |
| 77 | </use> |
| 78 | </clipPath> |
| 79 | </defs> |
| 80 | <rect |
| 81 | fill='rgb(255,0,0)' |
| 82 | stroke='rgb(0,0,0)' |
| 83 | stroke-width='4' |
| 84 | x='20' |
| 85 | y='70' |
| 86 | width='210' |
| 87 | height='210'> |
| 88 | </rect> |
| 89 | <rect |
| 90 | fill='rgb(255,0,0)' |
| 91 | stroke='rgb(0,0,0)' |
| 92 | stroke-width='4' |
| 93 | x='250' |
| 94 | y='70' |
| 95 | width='210' |
| 96 | height='210'> |
| 97 | </rect> |
| 98 | <g |
| 99 | transform='translate(20, 70)'> |
| 100 | <g |
| 101 | id='subtest1'> |
| 102 | <use |
| 103 | fill='rgb(255,0,0)' |
| 104 | fill-rule='evenodd' |
| 105 | href='#p1'> |
| 106 | </use> |
| 107 | <use |
| 108 | clip-path='url(#clipCircle1)' |
| 109 | fill='rgb(255,0,0)' |
| 110 | href='#c2'> |
| 111 | </use> |
| 112 | <use |
| 113 | clip-path='url(#clipCircle2)' |
| 114 | fill='rgb(255,0,0)' |
| 115 | href='#c1'> |
| 116 | </use> |
| 117 | <rect |
| 118 | clip-path='url(#clipInClip1)' |
| 119 | fill='rgb(0,0,255)' |
| 120 | width='200' |
| 121 | height='200'> |
| 122 | </rect> |
| 123 | <use |
| 124 | clip-path='url(#clipCircle1)' |
| 125 | fill='none' |
| 126 | stroke='rgb(0,0,0)' |
| 127 | href='#c2'> |
| 128 | </use> |
| 129 | <use |
| 130 | clip-path='url(#clipCircle2)' |
| 131 | fill='none' |
| 132 | stroke='rgb(0,0,0)' |
| 133 | href='#c1'> |
| 134 | </use> |
| 135 | <use |
| 136 | fill='none' |
| 137 | stroke='rgb(0,0,0)' |
| 138 | href='#p1'> |
| 139 | </use> |
| 140 | </g> |
| 141 | <g |
| 142 | id='subtest2' |
| 143 | transform='translate(230, 0)'> |
| 144 | <g |
| 145 | clip-path='url(#clipCircle1)'> |
| 146 | <use |
| 147 | fill='rgb(255,0,0)' |
| 148 | href='#c2'> |
| 149 | </use> |
| 150 | <use |
| 151 | fill='rgb(255,0,0)' |
| 152 | fill-rule='evenodd' |
| 153 | href='#p1'> |
| 154 | </use> |
| 155 | </g> |
| 156 | <rect |
| 157 | clip-path='url(#clipOnClip1)' |
| 158 | fill='rgb(0,0,255)' |
| 159 | width='300' |
| 160 | height='300'> |
| 161 | </rect> |
| 162 | <use |
| 163 | fill='none' |
| 164 | stroke='rgb(0,0,0)' |
| 165 | href='#c1'> |
| 166 | </use> |
| 167 | </g> |
| 168 | </g> |
| 169 | </g> |
| 170 | <g> |
| 171 | </g> |
| 172 | <rect |
| 173 | id='test-frame' |
| 174 | fill='none' |
| 175 | stroke='rgb(0,0,0)' |
| 176 | x='1' |
| 177 | y='1' |
| 178 | width='478' |
| 179 | height='358' |
| 180 | class='transparent-fill'> |
| 181 | </rect> |
| 182 | </svg> |