Commit 3a3847c5 authored by Aleks Totic's avatar Aleks Totic Committed by Commit Bot

[LayoutNG] testcase for codependent scrollbars

Just a testcase, because the bug cannot be fixed at this time.

Aborted attempt to fix this is at:
https://chromium-review.googlesource.com/c/chromium/src/+/1820177/4

Bug: 1007065
Change-Id: I44195ec77cc8b0924c81a567a9505e8a77f7d492
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1829878
Auto-Submit: Aleks Totic <atotic@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Reviewed-by: default avatarIan Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#701345}
parent fa4856f2
......@@ -2387,6 +2387,7 @@ crbug.com/305376 external/wpt/css/css-overflow/webkit-line-clamp-024.html [ Fail
crbug.com/305376 external/wpt/css/css-overflow/webkit-line-clamp-025.html [ Failure ]
crbug.com/965137 external/wpt/css/css-overflow/webkit-line-clamp-026.html [ Failure ]
crbug.com/305376 external/wpt/css/css-overflow/webkit-line-clamp-027.html [ Failure ]
crbug.com/1007065 external/wpt/css/css-overflow/overflow-codependent-scrollbars.html [ Failure ]
crbug.com/424365 external/wpt/css/css-shapes/shape-outside/shape-image/shape-image-024.html [ Failure ]
crbug.com/441840 [ Win ] external/wpt/css/css-shapes/shape-outside/values/shape-margin-001.html [ Failure ]
......
<!DOCTYPE html>
<link rel="author" href="mailto:atotic@google.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#scrollable">
<meta name="assert" content="What happens when appearance of one scrollbar triggers the other one?">
<style>
.container {
width: 100px;
height: 100px;
overflow: auto;
background: #DDD;
--too-big: 120px;
--slightly-smaller: 95px;
}
.target {
width: 120px;
height: 95px;
background: rgba(0,255,0,0.3);
}
</style>
<!-- -->
<div class="container">
<div class="target" style="width:var(--too-big);height:var(--slightly-smaller)" ></div>
</div>
<div class="container">
<div class="target" style="height:var(--too-big);width:var(--slightly-smaller)" ></div>
</div>
<script>
test(() => {
Array.from(document.querySelectorAll(".container")).forEach( el => {
let verticalScrollbar = el.offsetWidth - el.clientWidth;
let horizontalScrollbar = el.offsetHeight - el.clientHeight;
assert_equals(verticalScrollbar, horizontalScrollbar, "both scrollbars are visible.");
});
}, 'appearance of one scrollbar caused the other scrollbar to appear.');
</script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment