- From: Robert Flack via GitHub <noreply@w3.org>
- Date: Wed, 14 Jan 2026 14:19:25 +0000
- To: public-css-archive@w3.org
Yeah, we have an earlier resolution in #12392 where we said that we should probably make scrollParent a function. Adding the ability to look along a particular axis sounds reasonable. What would you propose the option in the dictionary and its parameters be? Something like this?
```
enum ScrollParentAxis { "both", "horizontal", "vertical", "inline", "block" };
dictionary ScrollParentOptions {
ScrollParentAxis axis = "both";
};
partial interface HTMLElement {
readonly Element? scrollParent(ScrollParentOptions options = {});
};
```
Or maybe "both" implies that the returned scroller should be scrollable along both axes and we should go with a name like "either"?
--
GitHub Notification of comment by flackr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12731#issuecomment-3749781386 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 14 January 2026 14:19:26 UTC