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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <style>
5
6 .fixed {
7 left: 100px;
8 width: 600px;
9 height: 200px;
10 position: fixed;
11 }
12 .box {
13 position: absolute;
14 bottom: 0;
15 width: 600px;
16 height: 100px;
17 background: lightblue;
18 }
19
20 </style>
21 <div style="position: absolute">
22 <div class="fixed">
23 <div class="box"></div>
24 </div>
25 </div>
26 <script>
27
28 test(() => {
29 var fixed = document.querySelector(".fixed");
30 var box = document.querySelector(".box");
31
32 assert_equals(box.offsetTop, 100);
33
34 fixed.style.height = "400px";
35 assert_equals(box.offsetTop, 300);
36 }, "Fixed-pos in abs-pos container updates children on height change.");
37
38 </script>
OLDNEW
« 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