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

Unified Diff: third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-in-rel-top-change.html

Issue 2683773004: Fix missed invalidation in markFixedPositionObjectForLayoutIfNeeded. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-in-rel-top-change.html
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-in-rel-top-change.html b/third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-in-rel-top-change.html
new file mode 100644
index 0000000000000000000000000000000000000000..36b6dfe9742b854aefb1a60ad086eb997d73795e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-in-rel-top-change.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<style>
+
+body { margin: 0; }
+.rel { position: relative; }
+.abs { position: absolute; }
+.fix { position: fixed; }
+
+</style>
+<div class="rel">
+ <div class="abs">
+ <div class="fix">fixed</div>
+ </div>
+</div>
+<script>
+
+test(() => {
+ var abs = document.querySelector(".abs");
+ var fix = document.querySelector(".fix");
+
+ assert_equals(fix.offsetTop, 0);
+
+ abs.style.top = "100px";
+ assert_equals(fix.offsetTop, 100);
+}, "Abs-pos in rel-pos container updates fixed-pos child when moved.");
+
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698