Index: third_party/WebKit/LayoutTests/fast/inline/add-abspos-before-block-inside-inline.html |
diff --git a/third_party/WebKit/LayoutTests/fast/inline/add-abspos-before-block-inside-inline.html b/third_party/WebKit/LayoutTests/fast/inline/add-abspos-before-block-inside-inline.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..07159029bc00f62aa690ce69930c70bf961442e3 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/inline/add-abspos-before-block-inside-inline.html |
@@ -0,0 +1,16 @@ |
+<!DOCTYPE html> |
+<style> |
+ #container { overflow:hidden; width:40px; height:40px; background:red; } |
+ #abspos { position:absolute; display:none; width:40px; height:20px; background:green; } |
+ #sibling { margin-top:20px; width:40px; height:20px; background:green; } |
+</style> |
+<p>There should be a green square below, and no red.</p> |
+<div id="container"> |
+ <span> |
+ <div id="abspos"></div><div id="sibling"></div> |
+ </span> |
+</div> |
+<script> |
+ document.body.offsetTop; |
+ abspos.style.display = "block"; |
+</script> |