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

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

Issue 2429113002: Don't update height in LayoutBlock::markFixedPositionObjectForLayoutIfNeeded. (Closed)
Patch Set: address review comments Created 4 years, 2 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-height-change.html
diff --git a/third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-height-change.html b/third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-height-change.html
new file mode 100644
index 0000000000000000000000000000000000000000..d4f643cddfbe453d6022a7b2acced73f9b1e29d5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-height-change.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<style>
+
+.fixed {
+ left: 100px;
+ width: 600px;
+ height: 200px;
+ position: fixed;
+}
+.box {
+ position: absolute;
+ bottom: 0;
+ width: 600px;
+ height: 100px;
+ background: lightblue;
+}
+
+</style>
+<div style="position: absolute">
+ <div class="fixed">
+ <div class="box"></div>
+ </div>
+</div>
+<script>
+
+test(() => {
+ var fixed = document.querySelector(".fixed");
+ var box = document.querySelector(".box");
+
+ assert_equals(box.offsetTop, 100);
+
+ fixed.style.height = "400px";
+ assert_equals(box.offsetTop, 300);
+}, "Fixed-pos in abs-pos container updates children on height change.");
+
+</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