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

Unified Diff: third_party/WebKit/LayoutTests/fragmentation/auto-scrollbar-shrink-to-fit.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fragmentation/auto-scrollbar-shrink-to-fit.html
diff --git a/third_party/WebKit/LayoutTests/fragmentation/auto-scrollbar-shrink-to-fit.html b/third_party/WebKit/LayoutTests/fragmentation/auto-scrollbar-shrink-to-fit.html
new file mode 100644
index 0000000000000000000000000000000000000000..3d04c7eef8d5df7133e1b2a89a62db196c879314
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fragmentation/auto-scrollbar-shrink-to-fit.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<style>
+ /* Prevent double initial layout. */
+ body { overflow:scroll; }
+</style>
+<p>There should be a blue square below.</p>
+<div style="columns:2; column-fill:auto; height:110px; line-height:20px; orphans:1; widows:1;">
+ <div style="position:relative;">
+ <div style="height:80px;"></div>
+ <div style="position:absolute;">
+ <div><br></div>
+ <!-- #elm doesn't fit in the first column (only 10px left, and it needs 20px),
+ so it has to be pushed to the next one. -->
+ <div id="elm" style="width:20px; background:blue;"><br></div>
+ <div style="visibility:hidden; overflow-y:auto; height:30px;">
+ <br>
+ <br>
+ </div>
+ </div>
+ </div>
+</div>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+test(() => {
+ var elm = document.getElementById("elm");
+ assert_equals(elm.offsetTop, 30);
+}, "Shrink-to-fit with auto vertical scrollbar inside");
+</script>

Powered by Google App Engine
This is Rietveld 408576698