Index: LayoutTests/fast/css/replaced-element-ignore-top-bottom.html |
diff --git a/LayoutTests/fast/css/replaced-element-ignore-top-bottom.html b/LayoutTests/fast/css/replaced-element-ignore-top-bottom.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..854175eaaa14337655d50ca23c79b23288125083 |
--- /dev/null |
+++ b/LayoutTests/fast/css/replaced-element-ignore-top-bottom.html |
@@ -0,0 +1,13 @@ |
+<!doctype html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<div> |
+ <div style="top: 0; bottom: 0"> |
+ <img style="height: 100%" src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="> |
+ </div> |
+</div> |
+<script> |
+ test(function() { |
+ assert_equals(document.querySelector("img").offsetHeight, 1); |
+ }, "Inapplicable |top| and |bottom| specified style shouldn't affect height calculation"); |
+</script> |