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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/block/shrink-to-fit-with-height-stretched-abspos-and-auto-scrollbar-sibling.html

Issue 2553833002: Refactor layoutBlock() and layoutBlockFlow(). Happens to fix bugs. (Closed)
Patch Set: Created 4 years 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/LayoutTests/fragmentation/auto-scrollbar-shrink-to-fit.html » ('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 <p>There should be a green square below. No red.</p>
3 <div style="float:left; position:relative; background:red;">
4 <div id="abspos" style="position:absolute; top:0; right:0; bottom:0; left:0; background:green;"></div>
5 <div style="width:150px; max-height:150px; overflow:auto;">
6 <div id="child" style="width:100px; height:100px;"></div>
7 </div>
8 </div>
9 <div style="clear:both;"></div>
10 <script src="../../resources/testharness.js"></script>
11 <script src="../../resources/testharnessreport.js"></script>
12 <script>
13 test(() => {
14 var abspos = document.getElementById("abspos");
15 var child = document.getElementById("child");
16 assert_equals(abspos.offsetWidth, 150);
17 assert_equals(abspos.offsetHeight, 100);
18 document.body.offsetLeft;
19 child.style.height = "400px";
20 assert_equals(abspos.offsetWidth, 150);
21 assert_equals(abspos.offsetHeight, 150);
22 }, "Add content to an overflow:auto container, so that scrollbars appear");
23 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fragmentation/auto-scrollbar-shrink-to-fit.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698