fune/testing/web-platform/tests/css/css-flexbox/overflow-auto-007.html
Mario Sanchez Prada 1805703af5 Bug 1626304 [wpt PR 22570] - [css-flexbox] Migrate overflow-auto-dynamic-changes.html test to WPT, a=testonly
Automatic update from web-platform-tests
[css-flexbox] Migrate overflow-auto-dynamic-changes.html test to WPT

Migrate this test out of third_party/blink/web_tests/css3/flexbox
and into the WPT-specific directory, adding links to the relevant
specs and a test assertion describing its purpose.

Bug: 1063749
Change-Id: Id406f4df17b8e60e79828f37295d404b49521fc0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2129966
Commit-Queue: David Grogan <dgrogan@chromium.org>
Reviewed-by: David Grogan <dgrogan@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#757201}

--

wpt-commits: da5e7eb97d72483523d3548e6ea10155bbdde7c8
wpt-pr: 22570
2020-04-13 14:08:14 +00:00

58 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html>
<title>CSS Flexbox: vertical space after changes with overflow: auto and flex-direction: column.</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow-3/#overflow-properties">
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-direction-property">
<link rel="help" href="https://crbug.com/590683">
<link rel="help" href="https://crbug.com/594465">
<link rel="match" href="reference/overflow-auto-007-ref.html">
<meta name="assert" content="This test checks that vertical space allocated to the content of a flexbox with 'overflow: auto' and 'flex-direction: column' is properly computed when its contents change." />
<style>
body {
width: 400px;
height: 300px;
}
.flexbox {
display: flex;
}
.column {
flex-direction: column;
}
.flex11a {
flex: 1 1 auto;
}
.root {
height: 100px;
overflow-y: auto;
}
</style>
<body onload="runTest()">
<p>This test should not have a horizontal scrollbar</p>
<div class="flexbox column">
<div class="flexbox">
<div class="flex11a">
<div class="root">
<div id="history"></div>
</div>
</div>
</div>
</div>
<script>
function runTest() {
var historyEl = document.getElementById('history');
historyEl.offsetWidth;
historyEl.innerText = '\n\n\n\n\n\n\n\n';
};
</script>
</body>
</html>