#1222: Other Spec Review: Single-Axis Scroll Containers
Discussions
Log in to see TAG-private discussions.
Discussed
May 18, 2026 (See Github)
Xiaocheng: I will also look at this.
Luke: I'm interested as well.
Discussed
May 18, 2026 (See Github)
Lola: Also CSS. To Eurasia.
Discussed
Jun 1, 2026 (See Github)
Lola: Luke?
Luke: I have not had a chance yet.
Comment by @freedebreuil Jun 4, 2026 (See Github)
Draft spec PR is now available: https://github.com/w3c/csswg-drafts/pull/13903
Discussed
Jun 8, 2026 (See Github)
Xiaocheng: Not a big proposal, but a breaking change. Looks like they didn’t estimate the breakage. They have a section about "to minimize compatibility impact," but there is no estimate.
Xiaocheng to draft a response for Luke and others to review.
Discussed
Jun 22, 2026 (See Github)
bump
Discussed
Jul 6, 2026 (See Github)
Comment by @lukewarlow Jul 16, 2026 (See Github)
Hi @freedebreuil, the TAG has discussed this and the new behavior is looking good to us on its own, but we noticed that this is a breaking change. Are there measurements to the impact to the web compatibility, or methods to measure such impacts? We'd like to have that included in the explainer. We'll continue to discuss this and reply with follow-up comments or a resolution when ready.
Comment by @freedebreuil Jul 21, 2026 (See Github)
Thanks @lukewarlow. The breaking change is limited to the case where clip on one axis is combined with a scrollable overflow value on the other (for example, overflow: scroll clip). With single-axis scroll containers, the clip value is now preserved instead of being converted to hidden. Since clip is an explicit opt-out of scrolling for that axis, we expect compatibility issues to be rare.
We added a use counter to track this: SingleAxisScroller
Also, updated the web compatibility section of the explainer to include this information.
OpenedApr 24, 2026
Specification
https://github.com/w3c/csswg-drafts/pull/13903
CSSWG discussion: https://github.com/w3c/csswg-drafts/issues/12289
Explainer
https://github.com/explainers-by-googlers/single-axis-scroll-containers
Links
A common issue web developers run into is creating a table with labels on the top and left sides, and needing to keep those labels visible both as the table scrolls horizontally and the page scrolls vertically. Without this, users can lose context while scrolling large tables, especially on mobile.
position: stickyis widely used for this, but it has the limitation that both axes must stick to the same scroller.Another common issue is when creating a scrollable container that should move in only one direction, developers have no way guarantee that the off-axis stays in place. Historically, when even one
overflowaxis is given a scrollable value, CSSoverflowalso converts the other axis to a scrollable value. This leads to issues when calling DOM scroll APIs such asscrollIntoView(), where the off-axis can move unintentionally.Please see the explainer for details.
Explainer Alternatives Considered
Explainer Proposal and Examples
Developers can create real single axis scroll containers matching users expectations when using them. End-users can keep labels on both axes visible as they scroll a large table on a mobile device. They do not see what appears to be a buggy offset of items when navigating to an off-screen carousel item. They see web pages that are easier to understand and use.
User research you did to validate the problem and/or design, if any:
Developer feedback:
Web Platform Tests:
wpt.fyi/results/css/css-position/sticky/position-sticky-single-axis-basic.html wpt.fyi/results/css/css-position/sticky/position-sticky-single-axis-dynamic-axis-change-crash.html wpt.fyi/results/css/css-position/sticky/position-sticky-single-axis-dynamic.html wpt.fyi/results/css/css-position/sticky/position-sticky-single-axis-nested.html wpt.fyi/results/css/css-position/sticky/position-sticky-single-axis-used-values.html wpt.fyi/results/css/css-overflow/single-axis-scroll-apis.html
The specification
Where and by whom is the work is being done?
Feedback so far
You should also know that...
None.
<!-- Content below this is maintained by @w3c-tag-bot -->Track conversations at https://tag-github-bot.w3.org/gh/w3ctag/design-reviews/1222