Re: [csswg-drafts] [cssom-view] Consider adding Element.scrollParent (#1522)

> You could make the same argument about Element.parentElement or Element.offsetParent. I think it's expected that you get the nearest parent.

Yes, "parent" implies closest ancestor, both in common English and in existing usage across the web platform and in specs. "Ancestor" is used when a more general relationship is meant.

> To get a grandparent a developer can walk the parent chain,

Yup, walking the chain is simple and what the platform already expects for similar patterns.

> I think what is scrollable should follow the definition of what is a scroll container

Strong agree.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1522#issuecomment-2842468163 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 30 April 2025 15:55:07 UTC