summaryrefslogtreecommitdiffstats
path: root/dom/svg/test/getBBox-method-helper.svg
blob: 8172b2d864c008ed3dc31f2a62f83f9045ada39d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"  xmlns:xlink="http://www.w3.org/1999/xlink"
  viewBox="0 0 500 500" width="500px" height="500px">
  <defs>
    <clipPath id="rect01" clip-rule="evenodd" clipPathUnits="objectBoundingBox">
      <rect x="0" y="0" width="0.5" height="1.0"/>
    </clipPath>
    <clipPath id="rect02" clip-rule="evenodd" clipPathUnits="objectBoundingBox">
      <rect x="0.5" y="0" width="0.5" height="1.0"/>
    </clipPath>
    <clipPath id="rect03" clip-rule="evenodd" clipPathUnits="objectBoundingBox">
      <rect x="0.5" y="0" width="0.5" height="1.0"/>
    </clipPath>
    <clipPath id="rect04" clip-rule="evenodd" clipPathUnits="objectBoundingBox">
      <rect x="0" y="0" width="0.5" height="1.0"/>
    </clipPath>
    <clipPath id="rect05" clip-rule="evenodd">
      <rect x="0" y="60" width="10px" height="23px"/>
    </clipPath>
    <clipPath id="rect06" clip-rule="evenodd">
      <rect x="10" y="60" width="10px" height="23px"/>
    </clipPath>
    <clipPath id="rect4" clip-rule="evenodd">
      <rect x="200" y="200" width="200" height="200"/>
    </clipPath>
    <clipPath id="rect-none" clip-rule="evenodd">
    </clipPath>
    <clipPath id="rect5" clip-rule="evenodd">
      <rect x="0" y="0" width="100" height="100"/>
    </clipPath>
    <clipPath id="rect6" clip-rule="evenodd">
      <rect x="150" y="0" width="100" height="100"/>
    </clipPath>
    <clipPath id="rect7" clip-rule="evenodd">
      <rect x="0" y="100" width="100" height="100"/>
    </clipPath>
    <clipPath id="rect8" clip-rule="evenodd">
      <rect x="10" y="10" width="180" height="180"/>
    </clipPath>
    <clipPath id="rect9" clip-rule="evenodd">
      <rect x="100" y="100" width="200" height="200"/>
    </clipPath>

    <clipPath id="circle1" clip-rule="evenodd">
      <circle cx="203" cy="203" r="150"/>
    </clipPath>
    <clipPath id="circle2" clip-rule="evenodd" clipPathUnits="objectBoundingBox">
      <circle cx="0.5" cy="0.5" r="0.25"/>
    </clipPath>
    <clipPath id="circle3" clip-rule="evenodd">
      <circle cx="100" cy="100" r="50"/>
      <circle cx="300" cy="300" r="50"/>
    </clipPath>

    <clipPath id="circle4" clip-rule="evenodd">
      <circle cx="50" cy="50" r="50"/>
    </clipPath>
    <clipPath id="circle5" clip-rule="evenodd">
      <circle cx="150" cy="50" r="50"/>
    </clipPath>
    <clipPath id="circle6" clip-rule="evenodd">
      <circle cx="50" cy="200" r="50"/>
    </clipPath>
    <clipPath id="circle7" clip-rule="evenodd" clipPathUnits="objectBoundingBox">
      <circle cx="0.5" cy="0.5" r="0.5"/>
    </clipPath>

    <clipPath id="circle8" clip-rule="evenodd" clipPathUnits="userSpaceOnUse">
      <circle cx="110"  cy="20"  r="90"/>
    </clipPath>

    <clipPath id="circle9" clip-rule="evenodd" clipPathUnits="userSpaceOnUse">
      <circle cx="290"  cy="20" r="90"/>
    </clipPath>

    <clipPath id="circle10" clip-rule="evenodd" clipPathUnits="userSpaceOnUse">
      <circle cx="110" cy="200"  r="90"/>
    </clipPath>

    <clipPath id="circle11" clip-rule="evenodd">
      <circle cx="0" cy="0" r="150"/>
    </clipPath>

    <clipPath id="star" clip-rule="evenodd">
      <path d="M400,25 L619,703 43,283 757,283 181,703 z" />
    </clipPath>

    <marker id="m_atr" markerUnits="strokeWidth" markerWidth="3" markerHeight="3" viewBox="0 0 10 10" refX="5" refY="5">
        <polygon points="0,0 5,5 0,10 10,5" fill="red"/>
    </marker>

    <switch>
      <rect id="rect-10" x="20"  y="20"  width="180" height="180" fill="blue"  stroke="cyan" stroke-width="8"/>
      <rect id="rect-11" x="200" y="20"  width="180" height="180" fill="lightgreen" stroke="none" />
      <rect id="rect-12" x="20"  y="200" width="180" height="180" fill="darkcyan" stroke="none" />
    </switch>

    <clipPath id="clipCircle1">
      <circle id="c1" cx="100" cy="100" r="50"/>
    </clipPath>

    <clipPath id="clipCircle2">
      <circle id="c2" cx="150" cy="150" r="50"/>
    </clipPath>

    <clipPath id="clipPath1">
      <path id="p1" d="M10 10l100 0 0 100 -100 0ZM50 50l40 0 0 40 -40 0Z" clip-rule="evenodd"/>
    </clipPath>

    <!-- "If a valid 'clip-path' reference is placed on one of the children of a 'clipPath' element, 
        then the given child element is clipped by the referenced clipping path before OR'ing the 
      silhouette of the child element with the silhouettes of the other child elements." -->

    <clipPath id="clipRects1">
      <rect x="50" y="30" width="25" height="100"/>
      <rect x="25" y="50" width="10" height="10" clip-path="url(#clipTwoCircles)"/>
    </clipPath>

    <!-- Test use in a clipPath -->
    <clipPath id="clipTwoCircles">
      <use xlink:href="#c1"/>
      <use xlink:href="#c2"/>
    </clipPath>

    <clipPath id="clipInClip1">
      <use xlink:href="#c2" clip-path="url(#clipCircle1)"/>
      <use xlink:href="#p1"/>
    </clipPath>

    <clipPath id="clipOnClip1" clip-path="url(#clipCircle1)">
      <use xlink:href="#c2"/>
      <use xlink:href="#p1"/>
    </clipPath>

  </defs>

  <!-- text -->
  <text id="text1" font-size="20px" font-familiy="monospace" fill="red"  x="0" y="50" clip-path="url('#rect01')">99</text>
  <text id="text2" font-size="20px" font-familiy="monospace" fill="blue" x="100" y="120" clip-path="url('#rect02')">99</text>
  <text id="text3" font-size="20px" font-familiy="monospace" clip-path="url('#rect03')" x="0" y="120">
    <tspan x="0" y="50" fill="red">99</tspan>
  </text>
  <text id="text4" font-size="20px" font-familiy="monospace" clip-path="url('#rect04')" x="0" y="120">
    <tspan x="100" y="120" fill="blue">99</tspan>
  </text>
  <text id="text5" font-size="20px" font-familiy="monospace" fill="red"  x="0" y="80" clip-path="url('#rect05')">99</text>
  <text id="text6" font-size="20px" font-familiy="monospace" fill="blue" x="0" y="80" clip-path="url('#rect06')">99</text>

  <!-- image -->
  <image id="image1" x="150" y="150" width="200" height="200" preserveApectRatio="none" clip="rect(200,300,300,200)"
   xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAKXRFWHRDcmVhdGlvbiBUaW1lAJCFIDMwIDQgMjAxNCAwOToyODo0MyArMDkwMH73aTcAAAAHdElNRQfeBB4AHhEfV06+AAAACXBIWXMAAB7BAAAewQHDaVRTAAAABGdBTUEAALGPC/xhBQAAABlJREFUeNpjZPj/n4EUwESS6lENoxqGlAYASU8CHux7qQ4AAAAASUVORK5CYII="/>
  
  <image id="image2" x="2"   y="2"   width="200" height="200" clip-path="url('#circle1')" preserveApectRatio="none"
   xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAKXRFWHRDcmVhdGlvbiBUaW1lAJCFIDMwIDQgMjAxNCAwOToyODo0MyArMDkwMH73aTcAAAAHdElNRQfeBB4AHhEfV06+AAAACXBIWXMAAB7BAAAewQHDaVRTAAAABGdBTUEAALGPC/xhBQAAABlJREFUeNpjZPj/n4EUwESS6lENoxqGlAYASU8CHux7qQ4AAAAASUVORK5CYII="/>

  <image id="image3" x="205" y="2"   width="200" height="200" clip-path="url('#circle1')" preserveApectRatio="none"
   xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAKXRFWHRDcmVhdGlvbiBUaW1lAJCFIDMwIDQgMjAxNCAwOToyODo0MyArMDkwMH73aTcAAAAHdElNRQfeBB4AHhEfV06+AAAACXBIWXMAAB7BAAAewQHDaVRTAAAABGdBTUEAALGPC/xhBQAAABlJREFUeNpjZPj/n4EUwESS6lENoxqGlAYASU8CHux7qQ4AAAAASUVORK5CYII="/>

  <image id="image4" x="2"   y="205" width="200" height="200" clip-path="url('#circle1')" preserveApectRatio="none"
   xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAKXRFWHRDcmVhdGlvbiBUaW1lAJCFIDMwIDQgMjAxNCAwOToyODo0MyArMDkwMH73aTcAAAAHdElNRQfeBB4AHhEfV06+AAAACXBIWXMAAB7BAAAewQHDaVRTAAAABGdBTUEAALGPC/xhBQAAABlJREFUeNpjZPj/n4EUwESS6lENoxqGlAYASU8CHux7qQ4AAAAASUVORK5CYII="/>

  <image id="image5" x="205" y="205" width="200" height="200" clip-path="url('#circle1')" preserveApectRatio="none"
   xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAKXRFWHRDcmVhdGlvbiBUaW1lAJCFIDMwIDQgMjAxNCAwOToyODo0MyArMDkwMH73aTcAAAAHdElNRQfeBB4AHhEfV06+AAAACXBIWXMAAB7BAAAewQHDaVRTAAAABGdBTUEAALGPC/xhBQAAABlJREFUeNpjZPj/n4EUwESS6lENoxqGlAYASU8CHux7qQ4AAAAASUVORK5CYII="/>

  <image id="image6" x="2"   y="2"   width="200" height="200" clip-path="url('#circle2')" preserveApectRatio="none"
   xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAKXRFWHRDcmVhdGlvbiBUaW1lAJCFIDMwIDQgMjAxNCAwOToyODo0MyArMDkwMH73aTcAAAAHdElNRQfeBB4AHhEfV06+AAAACXBIWXMAAB7BAAAewQHDaVRTAAAABGdBTUEAALGPC/xhBQAAABlJREFUeNpjZPj/n4EUwESS6lENoxqGlAYASU8CHux7qQ4AAAAASUVORK5CYII="/>

  <image id="image7" x="205" y="2"   width="200" height="200" clip-path="url('#circle2')" preserveApectRatio="none"
   xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAKXRFWHRDcmVhdGlvbiBUaW1lAJCFIDMwIDQgMjAxNCAwOToyODo0MyArMDkwMH73aTcAAAAHdElNRQfeBB4AHhEfV06+AAAACXBIWXMAAB7BAAAewQHDaVRTAAAABGdBTUEAALGPC/xhBQAAABlJREFUeNpjZPj/n4EUwESS6lENoxqGlAYASU8CHux7qQ4AAAAASUVORK5CYII="/>

  <image id="image8" x="2"   y="205" width="200" height="200" clip-path="url('#circle2')" preserveApectRatio="none"
   xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAKXRFWHRDcmVhdGlvbiBUaW1lAJCFIDMwIDQgMjAxNCAwOToyODo0MyArMDkwMH73aTcAAAAHdElNRQfeBB4AHhEfV06+AAAACXBIWXMAAB7BAAAewQHDaVRTAAAABGdBTUEAALGPC/xhBQAAABlJREFUeNpjZPj/n4EUwESS6lENoxqGlAYASU8CHux7qQ4AAAAASUVORK5CYII="/>

  <image id="image9" x="205" y="205" width="200" height="200" clip-path="url('#circle2')" preserveApectRatio="none"
   xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAKXRFWHRDcmVhdGlvbiBUaW1lAJCFIDMwIDQgMjAxNCAwOToyODo0MyArMDkwMH73aTcAAAAHdElNRQfeBB4AHhEfV06+AAAACXBIWXMAAB7BAAAewQHDaVRTAAAABGdBTUEAALGPC/xhBQAAABlJREFUeNpjZPj/n4EUwESS6lENoxqGlAYASU8CHux7qQ4AAAAASUVORK5CYII="/>

  <image id="image10" x="0" y="0" width="400" height="400" clip-path="url('#rect4')"
   xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAKXRFWHRDcmVhdGlvbiBUaW1lAJCFIDMwIDQgMjAxNCAwOToyODo0MyArMDkwMH73aTcAAAAHdElNRQfeBB4AHhEfV06+AAAACXBIWXMAAB7BAAAewQHDaVRTAAAABGdBTUEAALGPC/xhBQAAABlJREFUeNpjZPj/n4EUwESS6lENoxqGlAYASU8CHux7qQ4AAAAASUVORK5CYII="/>

  <image id="image11" x="0" y="0" width="400" height="400" clip-path="url('#rect-none')"
   xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAKXRFWHRDcmVhdGlvbiBUaW1lAJCFIDMwIDQgMjAxNCAwOToyODo0MyArMDkwMH73aTcAAAAHdElNRQfeBB4AHhEfV06+AAAACXBIWXMAAB7BAAAewQHDaVRTAAAABGdBTUEAALGPC/xhBQAAABlJREFUeNpjZPj/n4EUwESS6lENoxqGlAYASU8CHux7qQ4AAAAASUVORK5CYII="/>

  <image id="image12" x="25" y="43" width="768" height="768" clip-path="url('#star')" preserveApectRatio="none"
   xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAKXRFWHRDcmVhdGlvbiBUaW1lAJCFIDMwIDQgMjAxNCAwOToyODo0MyArMDkwMH73aTcAAAAHdElNRQfeBB4AHhEfV06+AAAACXBIWXMAAB7BAAAewQHDaVRTAAAABGdBTUEAALGPC/xhBQAAABlJREFUeNpjZPj/n4EUwESS6lENoxqGlAYASU8CHux7qQ4AAAAASUVORK5CYII="/>

  <image id="image13" x="0" y="0" width="400" height="400" clip-path="url('#circle3')"
   xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAKXRFWHRDcmVhdGlvbiBUaW1lAJCFIDMwIDQgMjAxNCAwOToyODo0MyArMDkwMH73aTcAAAAHdElNRQfeBB4AHhEfV06+AAAACXBIWXMAAB7BAAAewQHDaVRTAAAABGdBTUEAALGPC/xhBQAAABlJREFUeNpjZPj/n4EUwESS6lENoxqGlAYASU8CHux7qQ4AAAAASUVORK5CYII="/>

  <image id="image14" x="0" y="0" width="400" height="400" clip-path="url('#m_atr')"
   xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAKXRFWHRDcmVhdGlvbiBUaW1lAJCFIDMwIDQgMjAxNCAwOToyODo0MyArMDkwMH73aTcAAAAHdElNRQfeBB4AHhEfV06+AAAACXBIWXMAAB7BAAAewQHDaVRTAAAABGdBTUEAALGPC/xhBQAAABlJREFUeNpjZPj/n4EUwESS6lENoxqGlAYASU8CHux7qQ4AAAAASUVORK5CYII="/>

  <!-- path -->
  <path id="path1" d="M10,50 L25,100 H110 V50 Q60,0 10,50" stroke="black" stroke-width="8" stroke-miterlimit="1" stroke-linejoin="miter" fill="lightcyan" marker-mid="url(#m_atr)"/>
  <path id="path2" d="M160,50 L175,100 H260 V50 Q210,0 160,50" stroke="black" stroke-width="8" stroke-linejoin="bevel" fill="lightcyan" marker-mid="url(#m_atr)"/>
  <path id="path3" d="M10,150 L25,200 H110 V150 Q60,100 10,150" stroke="black" stroke-width="8" stroke-linejoin="round" fill="lightcyan" marker-mid="url(#m_atr)"/>
  

  <path id="path4" d="M10,50 L25,100 H110 V50 Q60,0 10,50" stroke="black" stroke-width="8" stroke-miterlimit="1" stroke-linejoin="miter" fill="lightcyan"
    marker-mid="url(#m_atr)" clip-path="url(#circle4)"/>

  <path id="path5" d="M160,50 L175,100 H260 V50 Q210,0 160,50" stroke="black" stroke-width="8" stroke-linejoin="bevel" fill="lightcyan"
    marker-mid="url(#m_atr)" clip-path="url(#circle5)"/>

  <path id="path6" d="M10,150 L25,200 H110 V150 Q60,100 10,150" stroke="black" stroke-width="8" stroke-linejoin="round" fill="lightcyan"
    marker-mid="url(#m_atr)" clip-path="url(#circle6)"/>

  <path id="path7" d="M10,50 L25,100 H110 V50 Q60,0 10,50"
        stroke="black" stroke-width="8" stroke-miterlimit="1" stroke-linejoin="miter" fill="lightcyan"
        clip-path="url('#rect5')" marker-mid="url(#m_atr)"/>

  <path id="path8" d="M160,50 L175,100 H260 V50 Q210,0 160,50"
        stroke="black" stroke-width="8" stroke-linejoin="bevel" fill="lightcyan"
        clip-path="url('#rect6')" marker-mid="url(#m_atr)"/>

  <path id="path9" d="M10,150 L25,200 H110 V150 Q60,100 10,150"
        stroke="black" stroke-width="8" stroke-linejoin="round" fill="lightcyan"
        clip-path="url('#rect7')" marker-mid="url(#m_atr)"/>

  <path id="path10" d="M10,50 L25,100 H110 V50 Q60,0 10,50"
        stroke="black" stroke-width="8" stroke-miterlimit="1" stroke-linejoin="miter" fill="lightcyan"
        clip-path="url('#circle7')" marker-mid="url(#m_atr)"/>

  <path id="path11" d="M160,50 L175,100 H260 V50 Q210,0 160,50"
        stroke="black" stroke-width="8" stroke-linejoin="bevel" fill="lightcyan"
        clip-path="url('#circle7')" marker-mid="url(#m_atr)"/>

  <path id="path12" d="M10,150 L25,200 H110 V150 Q60,100 10,150"
        stroke="black" stroke-width="8" stroke-linejoin="round" fill="lightcyan"
        clip-path="url('#circle7')" marker-mid="url(#m_atr)"/>

  <path id="path13" d="M50,0 C 130,0 50,0 100,50
                       C 100,130 100,50 50,100
                       C -30,100 50,100 0,50
                       C 0,-30 0,50 50,0Z" />

  <!-- use -->
  <use id="use1" xlink:href="#rect-10" x="50" y="50" clip-path="url('#circle8')"/>
  <use id="use2" xlink:href="#rect-11" x="50" y="50" clip-path="url('#circle9')"/>
  <use id="use3" xlink:href="#rect-12" x="50" y="50" clip-path="url('#circle10')"/>
  
  <use id="use4" xlink:href="#rect-10" x="2"   y="2"   width="200" height="200" clip-path="url('#circle11')"/>
  <use id="use5" xlink:href="#rect-10" x="205" y="2"   width="200" height="200" clip-path="url('#circle11')"/>
  <use id="use6" xlink:href="#rect-10" x="2"   y="205" width="200" height="200" clip-path="url('#circle11')"/>
  <use id="use7" xlink:href="#rect-10" x="205" y="205" width="200" height="200" clip-path="url('#circle11')"/>

  <use id="use8" xlink:href="#rect-10" x="50" y="50" clip-path="url('#m_atr')"/>

  <!-- foreignObject -->
  <foreignObject id="fo1" x="2" y="2" width="200" height="200" clip-path="url('#circle1')" clip="rect(2,102,102,2)">
    <div xmlns="http://www.w3.org/1999/xhtml" style="background-color:pink;width:100%;height:100%;">
There are issues of dynamic loading required for tiling. Accroding to 'postpone' attribute of Resource Priorities, the dynamic loading is controlled by positional relation with bounding box of embedded contents and container's viewport. However, each bounding boxes of embedded contents should be whole earth basically when this method is used. (green part on Example) Tiling is impossible unless this situation is changed.
    </div>
  </foreignObject>
  <foreignObject id="fo2" x="205" y="2" width="200" height="200" clip-path="url('#circle1')" >
    <div xmlns="http://www.w3.org/1999/xhtml" style="background-color:pink;width:100%;height:100%;">
There are issues of dynamic loading required for tiling. Accroding to 'postpone' attribute of Resource Priorities, the dynamic loading is controlled by positional relation with bounding box of embedded contents and container's viewport. However, each bounding boxes of embedded contents should be whole earth basically when this method is used. (green part on Example) Tiling is impossible unless this situation is changed.
    </div>
  </foreignObject>
  <foreignObject id="fo3" x="2" y="205" width="200" height="200" clip-path="url('#circle1')" >
    <div xmlns="http://www.w3.org/1999/xhtml" style="background-color:pink;width:100%;height:100%;">
There are issues of dynamic loading required for tiling. Accroding to 'postpone' attribute of Resource Priorities, the dynamic loading is controlled by positional relation with bounding box of embedded contents and container's viewport. However, each bounding boxes of embedded contents should be whole earth basically when this method is used. (green part on Example) Tiling is impossible unless this situation is changed.
    </div>
  </foreignObject>
  <foreignObject id="fo4" x="205" y="205" width="200" height="200" clip-path="url('#circle1')" clip="rect(2,102,102,2)">
    <div xmlns="http://www.w3.org/1999/xhtml" style="background-color:pink;width:100%;height:100%;">
There are issues of dynamic loading required for tiling. Accroding to 'postpone' attribute of Resource Priorities, the dynamic loading is controlled by positional relation with bounding box of embedded contents and container's viewport. However, each bounding boxes of embedded contents should be whole earth basically when this method is used. (green part on Example) Tiling is impossible unless this situation is changed.
    </div>
  </foreignObject>
  
  <foreignObject id="fo5" x="250" y="250" width="200" height="200" clip-path="url('#rect8')">
    <div xmlns="http://www.w3.org/1999/xhtml" style="background-color:pink;width:100%;height:100%;">
There are issues of dynamic loading required for tiling. Accroding to 'postpone' attribute of Resource Priorities, the dynamic loading is controlled by positional relation with bounding box of embedded contents and container's viewport. However, each bounding boxes of embedded contents should be whole earth basically when this method is used. (green part on Example) Tiling is impossible unless this situation is changed.
    </div>
  </foreignObject>

  <foreignObject id="fo6" x="0" y="0" width="200" height="200" clip-path="url('#rect9')">
    <div xmlns="http://www.w3.org/1999/xhtml" style="background-color:pink;width:100%;height:100%;">
There are issues of dynamic loading required for tiling. Accroding to 'postpone' attribute of Resource Priorities, the dynamic loading is controlled by positional relation with bounding box of embedded contents and container's viewport. However, each bounding boxes of embedded contents should be whole earth basically when this method is used. (green part on Example) Tiling is impossible unless this situation is changed.
    </div>
  </foreignObject>

  <foreignObject id="fo7" x="0" y="0" width="200" height="200" clip-path="url('#rect8')">
    <div xmlns="http://www.w3.org/1999/xhtml" style="background-color:pink;width:100%;height:100%;">
There are issues of dynamic loading required for tiling. Accroding to 'postpone' attribute of Resource Priorities, the dynamic loading is controlled by positional relation with bounding box of embedded contents and container's viewport. However, each bounding boxes of embedded contents should be whole earth basically when this method is used. (green part on Example) Tiling is impossible unless this situation is changed.
    </div>
  </foreignObject>

  <foreignObject id="fo8" x="0" y="0" width="200" height="200" clip-path="url('#m_atr')">
    <div xmlns="http://www.w3.org/1999/xhtml" style="background-color:pink;width:100%;height:100%;">
There are issues of dynamic loading required for tiling. Accroding to 'postpone' attribute of Resource Priorities, the dynamic loading is controlled by positional relation with bounding box of embedded contents and container's viewport. However, each bounding boxes of embedded contents should be whole earth basically when this method is used. (green part on Example) Tiling is impossible unless this situation is changed.
    </div>
  </foreignObject>

  <!-- -->
  <rect id="rect-1" width="200" height="200" fill="blue" clip-path="url(#clipInClip1)"/>
  <rect id="rect-2" width="200" height="200" fill="blue" clip-path="url(#clipRects1)"/>
  <rect id="rect-3" width="300" height="300" fill="blue" clip-path="url(#clipOnClip1)"/>

  <g clip-path="url(#clipCircle1)" id="g1">
    <use xlink:href="#c2" fill="red"/>
    <use xlink:href="#p1" fill="red" fill-rule="evenodd"/>
  </g>

</svg>