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

Unified Diff: LayoutTests/fast/block/positioning/abspos-auto-left-auto-top-inside-auto-margins.html

Issue 1217833007: Cannot rely on auto-positioned absolutely positioned descendants being marked for layout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months 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
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>

Powered by Google App Engine
This is Rietveld 408576698