Skip to content
Permalink
Browse files

Position tests: Work around IE6 bug with forced heights on small elem…

…ents.
  • Loading branch information
scottgonzalez committed May 5, 2012
1 parent dec5b48 commit cba2b6c74fe08e53647af7c5125cbbcd3b4d1941
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/unit/position/position.html
@@ -26,15 +26,15 @@
<div id="qunit" style="position:relative; z-index:2;"></div>

<!--
elements smaller than 10px have a line-height set on them to avoid a bug in IE6
elements smaller than 20px have a line-height set on them to avoid a bug in IE6
.height() returns the greater of the height and line-height
-->

<div id="qunit-fixture" style="top: 0; left: 0; z-index:1">
<div id="el1" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div>
<div id="el2" style="position: absolute; width: 6px; height: 6px; line-height: 6px;"></div>
<div id="parent" style="position: absolute; width: 6px; height: 6px; top: 4px; left: 4px; line-height: 6px;"></div>
<div id="within" style="position: absolute; width: 12px; height: 12px; top: 2px; left: 0px;"></div>
<div id="within" style="position: absolute; width: 12px; height: 12px; top: 2px; left: 0px; line-height: 12px;"></div>

<div id="scrollx" style="position: absolute; top: 0px; left: 0px">
<div id="elx" style="position: absolute; width: 10px; height: 10px; line-height: 10px;"></div>

0 comments on commit cba2b6c

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