Skip to content
Browse files

Position: Added visual test for flipping with margin and box-shadow.

  • Loading branch information
scottgonzalez committed Sep 3, 2010
1 parent 4b9d5d1 commit ddb9a783a8120a734d15d808b25009057bb16ac1
Showing with 43 additions and 0 deletions.
  1. +43 −0 tests/visual/position/position_margin.html
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8" />
<title>Position Visual Test: Default</title>
<link rel="stylesheet" href="../visual.css" type="text/css" />
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css" title="ui-theme" />
<script type="text/javascript" src="../../../jquery-1.4.2.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.position.js"></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript">
$(function() {
$( "#elem" ).position({
my: "right bottom",
at: "right bottom",
of: window,
collision: "fit"
#elem {
position: absolute;
top: 100px;
left: 100px;
width: 200px;
height: 200px;
box-shadow: 10px 10px 5px #888;
-moz-box-shadow: 10px 10px 5px #888;
-webkit-box-shadow: 10px 10px 5px #888;
background-color: #aaa;
margin: 15px;

<div id="elem"></div>


0 comments on commit ddb9a78

Please sign in to comment.
You can’t perform that action at this time.