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

Unified Diff: LayoutTests/fast/block/positioning/abspos-auto-left-fixed-top-change-parent-margin-left.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-fixed-top-change-parent-margin-left.html
diff --git a/LayoutTests/fast/block/positioning/abspos-auto-left-fixed-top-change-parent-margin-left.html b/LayoutTests/fast/block/positioning/abspos-auto-left-fixed-top-change-parent-margin-left.html
new file mode 100644
index 0000000000000000000000000000000000000000..b61d8741d42f17d4af83e2b7beb0c0773218168a
--- /dev/null
+++ b/LayoutTests/fast/block/positioning/abspos-auto-left-fixed-top-change-parent-margin-left.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<p>There should be no red on this page.</p>
+<div style="position:relative;">
+ <div id="elm" style="width:200px; height:200px; background:red;">
+ <div style="position:absolute; top:0; width:200px; height:200px; background:green;"></div>
+ </div>
+</div>
+<script>
+ document.body.offsetTop;
+ document.getElementById("elm").style.marginLeft = "200px";
+</script>

Powered by Google App Engine
This is Rietveld 408576698