Index: LayoutTests/fast/replaced/replaced-element-with-percentage-height-anonymous-block-parent.html |
diff --git a/LayoutTests/fast/replaced/replaced-element-with-percentage-height-anonymous-block-parent.html b/LayoutTests/fast/replaced/replaced-element-with-percentage-height-anonymous-block-parent.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4f160b5f94ebc5220c09aaaf964fac29cfcae46e |
--- /dev/null |
+++ b/LayoutTests/fast/replaced/replaced-element-with-percentage-height-anonymous-block-parent.html |
@@ -0,0 +1,22 @@ |
+<!doctype html> |
+<body style="height: 1000px; width: 1000px"> |
+ <div id="cb"> |
+ <div id="child" style="height: 100%"> |
+ <iframe style="width: 100%; height: 100%" data-expected-height=604></iframe> |
+ <div>crbug.com/414532: Layout a percentage height replaced element when it has anonymous wrapper and an ancestor changes height.</div> |
+ </div> |
+ </div> |
+</div> |
+</body> |
+<script src="../../resources/check-layout.js"></script> |
+<script> |
+ function runTest() { |
+ document.body.offsetTop; |
+ var cb = document.getElementById('cb'); |
+ cb.style.height = "600px"; |
+ document.body.offsetTop; |
+ checkLayout('iframe'); |
+ } |
+ |
+ window.onload = runTest; |
+</script> |