Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Unified Diff: LayoutTests/fast/replaced/replaced-element-with-percentage-height-anonymous-block-parent.html

Issue 764233002: Ensure layout on replaced elements in anonymous wrappers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/replaced/replaced-element-with-percentage-height-anonymous-block-parent-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/replaced/replaced-element-with-percentage-height-anonymous-block-parent-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698