#12289 allows boxes to only be scrollable in one axis.
So I suspect authors may want to query the scroll container that is scrollable in a specific axis.
Maybe they can just do
let scrollParent = element.scrollParent;
while (scrollParent) {
if (getComputedStyle(scrollParent).overflowY != "clip") {
break;
}
scrollParent = scrollParent.scrollParent;
}
But should we instead allow something like element.scrollParent({axis: "y"})?