fune/testing/web-platform/tests/css/css-overflow/overflow-scroll-intrinsic-001-ref.html
Ting-Yu Lin 6e286e149e Bug 1748574 - Rewrite the helper that computes scrollbar's intrinsic size. r=dholbert
This patch fixed the following:

1. Make the helper support the vertical writing modes since its callers
GetMinISize() and GetPrefISize() are fully aware of the vertical writing modes.
`overflow-scroll-intrinsic-001.html` verifies this scenario. This also fixed a
testcase with "writing-mode: vertical-lr" in flexbox's
cross-axis-scrollbar.html.

2. Treat scrollbar's intrinsic size "zero" if we have "scrollbar-width: none"
since no scrollbar is showing at all.
`overflow-auto-scrollbar-gutter-intrinsic-003.html` verifies this scenario.

3. Return the scrollbar size if we have "scrollbar-gutter: stable", or twice the
size if we have "scrollbar-gutter: stable both-edges".
`overflow-auto-scrollbar-gutter-intrinsic-{001,002}.html` verifies this
scenario.

Differential Revision: https://phabricator.services.mozilla.com/D135182
2022-01-07 04:13:42 +00:00

20 lines
668 B
HTML

<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>CSS Overflow Reference: Intrinsic size of a "overflow:auto" vertical scroll container</title>
<link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
<link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
<style>
.container {
border: 1px solid black;
width: 100px;
display: inline-block;
}
</style>
<div class="container" style="overflow-x: scroll;"></div>
<div class="container" style="overflow-y: scroll;"></div>
<div class="container" style="overflow-x: scroll;"></div>
<div class="container" style="overflow-y: scroll;"></div>
</html>