aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/draggable/draggable.html
diff options
context:
space:
mode:
authorTJ VanToll <tj.vantoll@gmail.com>2013-02-11 23:29:48 -0500
committerTJ VanToll <tj.vantoll@gmail.com>2013-02-11 23:29:48 -0500
commitc32bebd1bd28d158b017bb1dd7f95fb1d8a8d567 (patch)
treef6eb354ca38bcb6f60b5ad0899a79bc7d8b6079a /tests/unit/draggable/draggable.html
parentab408c9b82430e7a65a9269441cc0c0e2af95770 (diff)
downloadjquery-ui-c32bebd1bd28d158b017bb1dd7f95fb1d8a8d567.tar.gz
jquery-ui-c32bebd1bd28d158b017bb1dd7f95fb1d8a8d567.zip
Draggable: Account for z-index set in CSS for the stack option. Fixed #9077 - Draggable: stack option resets the z-index
Diffstat (limited to 'tests/unit/draggable/draggable.html')
-rw-r--r--tests/unit/draggable/draggable.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/unit/draggable/draggable.html b/tests/unit/draggable/draggable.html
index cd068eb20..50bed8caf 100644
--- a/tests/unit/draggable/draggable.html
+++ b/tests/unit/draggable/draggable.html
@@ -6,6 +6,12 @@
<script src="../../jquery.js"></script>
<link rel="stylesheet" href="../../../external/qunit.css">
+
+ <style>
+ /* See #9077 */
+ #draggable3, #draggable4 { z-index: 100; }
+ </style>
+
<script src="../../../external/qunit.js"></script>
<script src="../../jquery.simulate.js"></script>
<script src="../testsuite.js"></script>
@@ -39,13 +45,14 @@
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">
-
<div id="main"></div>
<div id="draggable1" style="background: green; width: 200px; height: 100px;">Relative</div>
<div id="draggable2" style="background: green; width: 200px; height: 100px; position: absolute; top: 10px; left: 10px;"><span>Absolute</span></div>
<div style='width: 1px; height: 1000px;'></div>
<div style="position: absolute; width: 1px; height: 2000px;"></div>
+<div id="draggable3"></div>
+<div id="draggable4"></div>
</div>