File: positioning_test_dom.html

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (200 lines) | stat: -rw-r--r-- 3,555 bytes parent folder | download | duplicates (12)
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
<!--
Copyright The Closure Library Authors. All Rights Reserved.

Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
-->
<style>
 .box1 {
    border: 1px solid black;
    margin: 10px;
    padding: 5px;
    height: 150px;
  }
  .outerbox {
    border: 1px solid gray;
    padding: 3px;
    margin: 5px 5px 5px 100px;
  }
  .box2 {
    position: relative;
    padding: 0px; /* If the padding has >0 value, IE6 fails some tests. */
    margin: -2px;
  }
  .box8 {
    position: absolute;
    padding: 0px; /* If the padding has >0 value, IE6 fails some tests. */
    margin: -2px;
    width: 500px;
    height: 100px;
  }
  .box9 {
    border: 1px solid black;
    margin: 10px;
    padding: 5px;
    height: 150px;
    width: 150px;
  }
  .anchorFrame {
    overflow: auto;
    width: 100px;
    height: 100px;
  }
  #popup1, #popup2, #popup3, #popup5, #popup6, #popup7 {
    position: absolute;
    border: 1px solid red;
    width: 100px;
    height: 100px;
  }
  #popup9 {
    border: 1px solid green;
    height: 100px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100px;
  }
  #popup8 {
    position: absolute;
    border: 1px solid red;
    width: 100px;
    height: 100px;
  }
  #anchor1 {
    border: 1px solid blue;
  }
  #anchor4 {
    position: absolute;
    left: 2px;
  }

  #test-area {
    height: 1000px;
    position: relative;
    width: 1000px;
  }
  .overflow-hidden {
    overflow: hidden;
  }
  .overflow-auto {
    overflow: auto;
  }
</style>
<div id="offscreen-anchor" style="position: absolute; left: -1000px; top: -1000px">
</div>
<div dir="ltr" id="ltr">
 Left to right element.
</div>
<div dir="rtl" id="rtl">
 Right to left element.
</div>
<div class="outerbox">
 <div class="box1" id="box1">
  <span id="anchor1">
   Anchor LTR.
  </span>
 </div>
 <div class="box2">
  <div id="popup1">
   <div>
    Popup ltr.
   </div>
  </div>
 </div>
</div>
<div class="outerbox" dir="rtl">
 <div class="box1">
  <span id="anchor2">
   Anchor RTL.
  </span>
 </div>
 <div class="box2">
  <div id="popup2">
   <div>
    Popup rtl.
   </div>
  </div>
 </div>
</div>
<div id="anchor4">
 Anchor 4.
</div>
<div id="popup3">
 Popup.
</div>
<div dir="rtl" style="border: 1px solid red;">
 <div dir="rtl" style="position: relative; overflow: auto; width: 150px; height: 100px; border: 1px solid black;">
  <div style="height: 200px;">
   <span id="anchor5">
    Anchor 5.
   </span>
  </div>
  <div id="popup5">
   Popup.
  </div>
 </div>
</div>
<iframe class="anchorFrame" id="iframe-standard" src="positioning_test_standard.html">
</iframe>
<iframe class="anchorFrame" id="iframe-quirk" src="positioning_test_quirk.html">
</iframe>
<div id="popup6">
 Popup6
</div>
<div style="position:relative;height:100px;width:100px;overflow:auto;">
 I hate positioning!
 <div>
  1
 </div>
 <div>
  2
 </div>
 <div>
  3
 </div>
 <div>
  4
 </div>
 <div>
  5
 </div>
 <div>
  6
 </div>
 <div>
  7
 </div>
 <div id="popup7">
  Popup7
 </div>
</div>
<iframe id="nested-outer" src="positioning_test_iframe1.html" style="overflow:auto;width:150px;height:150px;">
</iframe>
<div class="outerbox" dir="rtl">
 <div class="box1">
  <span id="anchor8">
   Anchor8 RTL.
  </span>
 </div>
 <div class="box8 overflow-auto">
  <div id="popup8">
   <div>
    Popup8 rtl.
   </div>
  </div>
  <div style="width:10000px;">
  </div>
 </div>
</div>
<div class="box9" id="box9">
 <div id="popup9">
  <div>
   Popup9
  </div>
 </div>
 <span id="anchor9">
  Anchor9
 </span>
</div>
<div id="test-area">
</div>