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

You are right, nested scroll-enabled elements might be needed.
Perhaps scrollParent and scrollParents

Here is a use case example:
https://jsfiddle.net/oriadam/n53asLs2



On Sun, Jun 25, 2017 at 5:40 PM, Mark Kennedy <notifications@github.com>
wrote:

> 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 😁 )
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/w3c/csswg-drafts/issues/1522#issuecomment-310906419>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ACqFOUWtuoPZzYgZCfB2TjTlHg9C61uEks5sHnFRgaJpZM4N2g-7>
> .
>



-- 
מנסים טבעונות ל-22 יום:
http://veg.anonymous.org.il/etgar22


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

Received on Sunday, 25 June 2017 15:45:03 UTC