Automatic update from web-platform-tests Enforce scroll axis constraints in single-axis containers The SingleAxisScrollContainers feature allows containers to be configured to scroll along only one axis via CSS overflow properties. Previously, scroll APIs like scrollTo and scrollIntoView did not respect these constraints and would incorrectly apply offsets to both axes. This change updates PaintLayerScrollableArea to accurately reflect single-axis scrollability. The scrollable delta for the maximum scroll offset is now set to zero for non-scrollable axes. Adds tests to ensure scrollIntoView and style changes to single-axis scroll container work as expected. Fixed: 496515802 Change-Id: I7cfa72d64feceb0daf060dc77754acf1a0799ee0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7702333 Auto-Submit: Free Debreuil <freedebreuil@google.com> Reviewed-by: Robert Flack <flackr@chromium.org> Commit-Queue: Free Debreuil <freedebreuil@google.com> Cr-Commit-Position: refs/heads/main@{#1614582} -- wpt-commits: 2ae012c5ca1d0c85a886e0ff797d44193f78f8b0 wpt-pr: 58878
26 lines
649 B
HTML
26 lines
649 B
HTML
<!doctype html>
|
|
<meta charset="utf-8">
|
|
<title>Single-axis scroll containers: Clipped X Rendering RTL (Reference)</title>
|
|
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5572">
|
|
<style>
|
|
#scroller {
|
|
width: 100px;
|
|
height: 100px;
|
|
direction: rtl;
|
|
overflow-x: hidden; /* Reference standard */
|
|
overflow-y: scroll;
|
|
scrollbar-width: none;
|
|
}
|
|
#content {
|
|
width: 300px;
|
|
height: 300px;
|
|
background: linear-gradient(to right, lightcoral, lightblue);
|
|
color: black;
|
|
font-family: sans-serif;
|
|
font-size: 20px;
|
|
}
|
|
</style>
|
|
<div id="scroller">
|
|
<div id="content">RTL gradient and text</div>
|
|
</div>
|