Debian Codegraph @

closure-library/closure/goog/positioning/positioning_test.html

raw
1 <!DOCTYPE html><!-- DO NOT EDIT. This file auto-generated by generate_closure_unit_tests.js --><!--
2 Copyright 2017 The Closure Library Authors. All Rights Reserved.
3
4 Use of this source code is governed by the Apache License, Version 2.0.
5 See the COPYING file for details.
6 --><html><head><meta charset="UTF-8">
7
8 <script src="../base.js"></script>
9
10 <script>goog.require('goog.positioningTest');</script>
11 <title>Closure Unit Tests - goog.positioningTest</title><!--
12 Copyright 2017 The Closure Library Authors. All Rights Reserved.
13
14 Use of this source code is governed by the Apache License, Version 2.0.
15 See the COPYING file for details.
16 -->
17 <style>
18 .box1 {
19 border: 1px solid black;
20 margin: 10px;
21 padding: 5px;
22 height: 150px;
23 }
24 .outerbox {
25 border: 1px solid gray;
26 padding: 3px;
27 margin: 5px 5px 5px 100px;
28 }
29 .box2 {
30 position: relative;
31 padding: 0px; /* If the padding has >0 value, IE6 fails some tests. */
32 margin: -2px;
33 }
34 .box8 {
35 position: absolute;
36 padding: 0px; /* If the padding has >0 value, IE6 fails some tests. */
37 margin: -2px;
38 width: 500px;
39 height: 100px;
40 }
41 .box9 {
42 border: 1px solid black;
43 margin: 10px;
44 padding: 5px;
45 height: 150px;
46 width: 150px;
47 }
48 .anchorFrame {
49 overflow: auto;
50 width: 100px;
51 height: 100px;
52 }
53 #popup1, #popup2, #popup3, #popup5, #popup6, #popup7 {
54 position: absolute;
55 border: 1px solid red;
56 width: 100px;
57 height: 100px;
58 }
59 #popup9 {
60 border: 1px solid green;
61 height: 100px;
62 left: 0;
63 position: absolute;
64 top: 0;
65 width: 100px;
66 }
67 #popup8 {
68 position: absolute;
69 border: 1px solid red;
70 width: 100px;
71 height: 100px;
72 }
73 #anchor1 {
74 border: 1px solid blue;
75 }
76 #anchor4 {
77 position: absolute;
78 left: 2px;
79 }
80
81 #test-area {
82 height: 1000px;
83 position: relative;
84 width: 1000px;
85 }
86 .overflow-hidden {
87 overflow: hidden;
88 }
89 .overflow-auto {
90 overflow: auto;
91 }
92 </style>
93 </head><body><div id="offscreen-anchor" style="position: absolute; left: -1000px; top: -1000px">
94 </div>
95 <div dir="ltr" id="ltr">
96 Left to right element.
97 </div>
98 <div dir="rtl" id="rtl">
99 Right to left element.
100 </div>
101 <div class="outerbox">
102 <div class="box1" id="box1">
103 <span id="anchor1">
104 Anchor LTR.
105 </span>
106 </div>
107 <div class="box2">
108 <div id="popup1">
109 <div>
110 Popup ltr.
111 </div>
112 </div>
113 </div>
114 </div>
115 <div class="outerbox" dir="rtl">
116 <div class="box1">
117 <span id="anchor2">
118 Anchor RTL.
119 </span>
120 </div>
121 <div class="box2">
122 <div id="popup2">
123 <div>
124 Popup rtl.
125 </div>
126 </div>
127 </div>
128 </div>
129 <div id="anchor4">
130 Anchor 4.
131 </div>
132 <div id="popup3">
133 Popup.
134 </div>
135 <div dir="rtl" style="border: 1px solid red;">
136 <div dir="rtl" style="position: relative; overflow: auto; width: 150px; height: 100px; border: 1px solid black;">
137 <div style="height: 200px;">
138 <span id="anchor5">
139 Anchor 5.
140 </span>
141 </div>
142 <div id="popup5">
143 Popup.
144 </div>
145 </div>
146 </div>
147 <iframe class="anchorFrame" id="iframe-standard" src="positioning_test_standard.html">
148 </iframe>
149 <iframe class="anchorFrame" id="iframe-quirk" src="positioning_test_quirk.html">
150 </iframe>
151 <div id="popup6">
152 Popup6
153 </div>
154 <div style="position:relative;height:100px;width:100px;overflow:auto;">
155 I hate positioning!
156 <div>
157 1
158 </div>
159 <div>
160 2
161 </div>
162 <div>
163 3
164 </div>
165 <div>
166 4
167 </div>
168 <div>
169 5
170 </div>
171 <div>
172 6
173 </div>
174 <div>
175 7
176 </div>
177 <div id="popup7">
178 Popup7
179 </div>
180 </div>
181 <iframe id="nested-outer" src="positioning_test_iframe1.html" style="overflow:auto;width:150px;height:150px;">
182 </iframe>
183 <div class="outerbox" dir="rtl">
184 <div class="box1">
185 <span id="anchor8">
186 Anchor8 RTL.
187 </span>
188 </div>
189 <div class="box8 overflow-auto">
190 <div id="popup8">
191 <div>
192 Popup8 rtl.
193 </div>
194 </div>
195 <div style="width:10000px;">
196 </div>
197 </div>
198 </div>
199 <div class="box9" id="box9">
200 <div id="popup9">
201 <div>
202 Popup9
203 </div>
204 </div>
205 <span id="anchor9">
206 Anchor9
207 </span>
208 </div>
209 <div id="test-area">
210 </div></body></html>