Re: [csswg-drafts] [cssom-view] Consider adding Element.scrollParent

I posted a reply on the www-dom mailing list, but I'll leave it here also...

This sounds like a cool feature but I'm curious about the use-cases as I've never come across a situation where I've needed this. Are there not any cases where there may be two parents in the hierarchy and you don't want the closest, but the one after it? Also, a more specific name would be better like `closestScrollParent` or similar. `scrollParent` is vague since there could be multiple "scrollParent"s technically (i.e. grandparents, great grandparents, etc :grin: )

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

Received on Sunday, 25 June 2017 14:40:20 UTC