3 .red { border: 2px solid red }
4 .case { float: left; width: 130px; height: 100px; display: inline-block; border: 2px solid blue}
5 .positioned-root { position: relative; }
6 .green { border: 2px solid green }
7 .visible { visibility: visible}
8 .invisible { visibility: hidden}
9 //.invisible:hover { visibility: visible}
10 .abstop { position: absolute; left:0; right:0; height:30px }
11 .abs { position: absolute; left:0; right:0; top:0; bottom:0 }
12 .zindex { z-index: 1 }
16 if (window.layoutTestController)
17 layoutTestController.waitUntilDone();
24 document.body.offsetTop;
27 document.getElementById('9').style.setProperty('visibility','visible','');
29 document.getElementById('10').style.setProperty('visibility','visible','');
30 document.getElementById('10').style.setProperty('visibility','hidden','');
32 document.getElementById('11').style.setProperty('visibility','visible','');
34 document.getElementById('12').style.setProperty('visibility','hidden','');
35 document.getElementById('12').style.setProperty('visibility','visible','');
37 document.getElementById('13a').style.setProperty('visibility','hidden','');
38 document.getElementById('13b').style.setProperty('visibility','hidden','');
39 document.getElementById('13c').style.setProperty('visibility','hidden','');
40 document.getElementById('13b').style.setProperty('visibility','visible','');
42 node1 = document.createElement('div');
43 node1.appendChild(document.createTextNode('ok'));
44 document.getElementById('14').appendChild(node1);
46 node2 = document.createElement('div');
47 node2.setAttribute('class','invisible abs green');
48 node2.appendChild(document.createTextNode('ok'));
49 document.getElementById('15').appendChild(node2);
50 node2.style.setProperty('visibility','visible','');
51 document.getElementById('15').removeChild(node2);
53 document.getElementById('16').style.setProperty('visibility','hidden','');
55 document.getElementById('17').style.setProperty('visibility','visible','');
57 document.getElementById('18a').style.setProperty('visibility','hidden','');
59 document.getElementById('19a').style.setProperty('visibility','hidden','');
61 document.getElementById('20a').style.setProperty('visibility','hidden','');
63 document.getElementById('21a').style.setProperty('visibility','hidden','');
65 document.getElementById('22').style.setProperty('visibility','visible','');
68 document.body.offsetTop;
70 setTimeout(dotest2,20);
76 node1.style.setProperty('visibility','visible','');
77 document.getElementById('14').removeChild(node1);
78 document.getElementById('14').appendChild(node1);
79 node1.setAttribute('class','green');
81 document.getElementById('15').appendChild(node2);
83 document.getElementById('18b').style.setProperty('visibility','visible','');
85 document.getElementById('19b').style.setProperty('visibility','visible','');
87 document.getElementById('20b').style.setProperty('visibility','visible','');
88 document.getElementById('20b').style.setProperty('visibility','hidden','');
90 document.getElementById('21b').style.setProperty('visibility','visible','');
92 document.getElementById('22').style.setProperty('visibility','hidden','');
95 document.body.offsetTop;
97 if (window.layoutTestController)
98 layoutTestController.notifyDone();
103 <body onload="setTimeout(dotest,20)">
105 <div class=positioned-root>
107 <div class="visible green">
108 <div class="invisible red">
116 <div class=positioned-root>
117 2 green box with word ok:
118 <div class="invisible red">
119 <div class="visible green">
127 <div class=positioned-root>
128 3 green box with word ok:
129 <div class="invisible abstop red" >
130 <div class="visible green">
138 <div class=positioned-root>
139 4 green box with word ok:
140 <div class="invisible abstop red" >
141 <div class="visible abs green">
150 <div class=positioned-root>
151 5 green box with word ok:
152 <div class="invisible abstop red">
153 <div class="invisible red">
154 <div class="visible green">
163 <div class=positioned-root>
164 6 green box with word ok:
165 <div class="invisible abstop red">
166 <div class="invisible abs red">
167 <div class="visible green">
176 <div class=positioned-root>
177 7 green box with word ok:
178 <div class="invisible abstop red">
179 <div class="invisible abs red">
180 <div class="visible abs green">
189 <div class=positioned-root>
190 8 double green box with word ok:
191 <div class="visible abstop green">
192 <div class="invisible abs red">
193 <div class="visible abs green">
202 <div class=positioned-root>
203 9 green box with word ok:
204 <div class="invisible abstop red">
205 <div class="invisible abs red">
206 <div id="9" class="invisible abs green">
215 <div class=positioned-root>
217 <div class="invisible abstop red">
218 <div class="visible abs green">
219 <div id="10" class="invisible abs red">
228 <div class=positioned-root>
229 11 green box with word ok:
230 <div class="invisible abstop red">
231 <div class="invisible red">
232 <div id="11" class="invisible green">
241 <div class=positioned-root>
242 12 green box with word ok:
243 <div class="invisible abstop red">
244 <div class="invisible red">
245 <div id="12" class="visible green">
255 <div class=positioned-root>
257 <div id="13a" class="visible abstop red">
258 <div id="13b" class="visible green">
259 <div id="13c" class="visible red">
268 <div class=positioned-root>
269 14 green box with word ok:
270 <div id="14" class="invisible abstop">
276 <div class=positioned-root>
277 15 green box with word ok:
278 <div id="15" class="invisible abstop">
284 <div class=positioned-root>
285 16 green box with word ok:
286 <div class="invisible abstop red">
287 <div class="invisible red">
288 <div id="16" class="visible red">
291 <div class="visible green">
302 <div class=positioned-root>
303 17 green box with word ok:
304 <div class="invisible abstop red">
305 <div class="invisible red">
306 <div id="17" class="invisible green">
309 <div class="invisible red">
318 <div class=positioned-root>
319 18 green box with word ok:
320 <div class="invisible abstop red">
321 <div class="invisible red">
322 <div id="18a" class="visible red">
325 <div id="18b" class="invisible green">
334 <div class=positioned-root>
335 19 green box with word ok:
336 <div class="invisible abstop red">
337 <div class="invisible red">
338 <div id="19a" class="visible red">
342 <div class="invisible red">
343 <div id="19b" class="invisible green">
352 <div class=positioned-root>
354 <div class="invisible abstop red">
355 <div class="visible green">
356 <div id="20a" class="visible red">
359 <div id="20b" class="invisible green">
368 <div class=positioned-root>
369 21 two green boxes with word ok:
370 <div class="invisible abstop red">
371 <div id="21a" class="visible red">
372 <div class="visible green">
376 <div class="invisible red">
377 <div id="21b" class="invisible green">
386 <div class=positioned-root>
387 22 green box with word ok:
388 <div id="22" class="invisible abstop red" >
389 <div class="visible abs green">
397 <div class=positioned-root>
398 23 green box with word ok:
399 <div class="invisible abstop red zindex" >
400 <div class="abs red">
401 <div class="visible abs green">