</script>
</head>
<body>
- <div id="relative-1" class="relative">relative-1
- <div id="relative-1-1" class="relative">relative-1-1
- <div id="relative-1-1-1" class="relative">relative-1-1-1</div>
- </div>
- </div>
- <div id="relative-2" class="relative">relative-2</div>
+ <div id="relative-1" class="relative"><div id="relative-1-1" class="relative"><div id="relative-1-1-1" class="relative"></div></div></div>
+ <div id="relative-2" class="relative"></div>
<div id="marker"></div>
</body>
</html>
\ No newline at end of file
equals( $w('#relative-1').offset().top, jQuery.browser.msie ? 6 : 7, "$('#relative-1').offset().top" );
equals( $w('#relative-1').offset().left, 7, "$('#relative-1').offset().left" );
+ equals( $w('#relative-1-1').offset().top, jQuery.browser.msie ? 13 : 15, "$('#relative-1-1').offset().top" );
+ equals( $w('#relative-1-1').offset().left, 15, "$('#relative-1-1').offset().left" );
+
equals( $w('#relative-2').offset().top, jQuery.browser.msie ? 141 : 142, "$('#relative-2').offset().top" );
equals( $w('#relative-2').offset().left, 27, "$('#relative-2').offset().left" );