Permalink
Browse files

Update test document to remove text about how the tests were previous…

…ly failing. Also set position:relative on test 2 to prevent rendering element from going behind its parent background.
  • Loading branch information...
1 parent 5d1c05b commit fb0db575a24ee142474b82f5075e62d5ff5a5eaa Jason Johnston committed Jun 2, 2010
Showing with 5 additions and 6 deletions.
  1. +5 −6 tests/margin-collapsing-tests.html
@@ -37,6 +37,7 @@
#test2 {
background: red;
+ position: relative;
}
#test2 .inside {
behavior: url(../build/PIE.htc);
@@ -53,25 +54,23 @@
<h1>Margin/Overflow Treatment with PIE</h1>
<p>These boxes have <code>overflow:hidden</code>. Inside is a <code>div</code> with margin. The expected behavior is for that margin not to collapse (because of the overflow setting).</p>
-
- <p>In cases where PIE is attached to the inner, the top margin collapses.</p>
-
+
<div id="test" class="box">
<div class="inside">
- This box has PIE on the outside and the inside. This box should be spaced 20px on all sides, but it isn't.
+ This box has PIE on the outside and the inside. This box should be spaced 20px on all sides.
</div><!--/inside-->
</div><!--/test-->
<div id="test2" class="box">
<div class="inside">
- This box has PIE on the inside only. This box should be spaced 20px on all sides, but it isn't. Additionally, it is missing a background color.
+ This box has PIE on the inside only. This box should be spaced 20px on all sides.
</div><!--/inside-->
</div><!--/test2-->
<div id="control" class="box">
<div class="inside">
- This box has PIE on the outside, but not on the inside. Margin is respected.
+ This box has PIE on the outside, but not on the inside.
</div><!--/test2-->
</div><!--/test-->
</body>

0 comments on commit fb0db57

Please sign in to comment.