| 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>
|
|
|