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

Side by Side 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 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 body { margin: 0; }
7 .rel { position: relative; }
8 .abs { position: absolute; }
9 .fix { position: fixed; }
10
11 </style>
12 <div class="rel">
13 <div class="abs">
14 <div class="fix">fixed</div>
15 </div>
16 </div>
17 <script>
18
19 test(() => {
20 var abs = document.querySelector(".abs");
21 var fix = document.querySelector(".fix");
22
23 assert_equals(fix.offsetTop, 0);
24
25 abs.style.top = "100px";
26 assert_equals(fix.offsetTop, 100);
27 }, "Abs-pos in rel-pos container updates fixed-pos child when moved.");
28
29 </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