Index: LayoutTests/fast/block/positioning/abspos-auto-left-auto-top-inside-auto-margins.html |
diff --git a/LayoutTests/fast/block/positioning/abspos-auto-left-auto-top-inside-auto-margins.html b/LayoutTests/fast/block/positioning/abspos-auto-left-auto-top-inside-auto-margins.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..aed6993286e922568fabf916c264670dccc0ebc5 |
--- /dev/null |
+++ b/LayoutTests/fast/block/positioning/abspos-auto-left-auto-top-inside-auto-margins.html |
@@ -0,0 +1,12 @@ |
+<!DOCTYPE html> |
+<p>On this page there should be a blue square above a yellow square.</p> |
+<div style="position:relative; width:500px;"> |
+ <div id="elm" style="margin:auto; width:100px; height:400px; background:yellow;"> |
+ <div></div> |
+ <div style="position:absolute; width:200px; height:200px; background:blue;"></div> |
+ </div> |
+</div> |
+<script> |
+ document.body.offsetTop; |
+ document.getElementById("elm").style.width = "200px"; |
+</script> |