|
16 | 16 | <script src="../testsuite.js"></script>
|
17 | 17 |
|
18 | 18 | <script src="position_core.js"></script>
|
| 19 | + <script src="position_core_within.js"></script> |
19 | 20 |
|
20 | 21 | <script src="../swarminject.js"></script>
|
21 | 22 | </head>
|
22 | 23 | <body>
|
23 |
| - |
24 |
| -<h1 id="qunit-header">jQuery UI Position Test Suite</h1> |
25 |
| -<h2 id="qunit-banner"></h2> |
26 |
| -<div id="qunit-testrunner-toolbar"></div> |
27 |
| -<h2 id="qunit-userAgent"></h2> |
28 |
| -<ol id="qunit-tests"> |
29 |
| -</ol> |
| 24 | +<div style="position:relative; z-index:2;"> |
| 25 | + <h1 id="qunit-header">jQuery UI Position Test Suite</h1> |
| 26 | + <h2 id="qunit-banner"></h2> |
| 27 | + <div id="qunit-testrunner-toolbar"></div> |
| 28 | + <h2 id="qunit-userAgent"></h2> |
| 29 | + <ol id="qunit-tests"> |
| 30 | + </ol> |
| 31 | +</div> |
30 | 32 |
|
31 | 33 | <!--
|
32 | 34 | elements smaller than 10px have a line-height set on them to avoid a bug in IE6
|
33 | 35 | .height() returns the greater of the height and line-height
|
34 | 36 | -->
|
35 | 37 |
|
36 |
| -<div id="qunit-fixture" style="top: 0; left: 0;"> |
37 |
| - <div id="el1" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div> |
38 |
| - <div id="el2" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div> |
39 |
| - <div id="parent" style="position: absolute; width: 6px; height: 6px; top: 4px; left: 4px; line-height: 6px;"></div> |
40 |
| -</div> |
41 |
| - |
42 |
| -<div style="position: absolute; top: 0px; left: 0px"> |
43 |
| - <div id="elx" style="position: absolute; width: 10px; height: 10px; line-height: 10px;"></div> |
44 |
| - <div id="parentx" style="position: absolute; width: 20px; height: 20px; top: 40px; left: 40px;"></div> |
| 38 | +<div id="qunit-fixture" style="top: 0; left: 0; z-index:1"> |
| 39 | + <div id="within-container"> |
| 40 | + <div id="el1" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div> |
| 41 | + <div id="el2" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div> |
| 42 | + <div id="parent" style="position: absolute; width: 6px; height: 6px; top: 4px; left: 4px; line-height: 6px;"></div> |
| 43 | + |
| 44 | + <div style="position: absolute; top: 0px; left: 0px"> |
| 45 | + <div id="elx" style="position: absolute; width: 10px; height: 10px; line-height: 10px;"></div> |
| 46 | + <div id="parentx" style="position: absolute; width: 20px; height: 20px; top: 40px; left: 40px;"></div> |
| 47 | + </div> |
| 48 | + |
| 49 | + <div style="position: absolute; top: 200px; left: 100px;"> |
| 50 | + <div id="el-offset-100-200" style="position: absolute; width: 10px; height: 10px; line-height: 10px;"></div> |
| 51 | + <div style="position: absolute; top: 100px; left: 50px;"> |
| 52 | + <div id="el-two-offset-150-300" style="position: absolute; width: 10px; height: 10px; line-height: 10px;"></div> |
| 53 | + <div id="el-fixed" style="position: fixed; top: 200px; left: 200px;"></div> |
| 54 | + </div> |
| 55 | + </div> |
| 56 | + |
| 57 | + <div style="position: absolute; height: 5000px; width: 5000px;"></div> |
| 58 | + |
| 59 | + <div id="bug-5280" style="height: 30px; width: 201px;"> |
| 60 | + <div style="width: 50px; height: 10px;"></div> |
| 61 | + </div> |
| 62 | + </div> |
45 | 63 | </div>
|
46 | 64 |
|
47 |
| -<div style="position: absolute; top: 200px; left: 100px;"> |
48 |
| - <div id="el-offset-100-200" style="position: absolute; width: 10px; height: 10px; line-height: 10px;"></div> |
49 |
| - <div style="position: absolute; top: 100px; left: 50px;"> |
50 |
| - <div id="el-two-offset-150-300" style="position: absolute; width: 10px; height: 10px; line-height: 10px;"></div> |
51 |
| - <div id="el-fixed" style="position: fixed; top: 200px; left: 200px;"></div> |
52 |
| - </div> |
53 |
| -</div> |
54 | 65 |
|
55 |
| -<div style="position: absolute; height: 5000px; width: 5000px;"></div> |
56 | 66 |
|
57 |
| -<div id="bug-5280" style="height: 30px; width: 201px;"> |
58 |
| - <div style="width: 50px; height: 10px;"></div> |
59 |
| -</div> |
60 | 67 |
|
61 | 68 | </body>
|
62 | 69 | </html>
|
0 commit comments