W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2017

Re: [csswg-drafts] [cssom-view] Add notIfViewed to ScrollIntoViewOptions; add FocusScrollOptions

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Tue, 17 Oct 2017 06:33:15 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-337131963-1508221994-sysbot+gh@w3.org>
> preventScroll: true + IntersectionObserver + scrollIntoView() handles all use cases, but might not be so convenient.

I agree both that it would work, and that it's not so convenient.

Rather than adding another boolean or another value to an enum in the dictionary, which would  force us to think hard about naming to make the whole thing non confusing, couldn't we add a numeric `threshold`, with the same meaning as the `threshold` in `IntersectionObserver`, applied only in the `if-hidden` case?

That seems to cover everything, without excessive complexity either for authors who want to use this, nor for those who don't care, nor on the implementation side.

GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/1805#issuecomment-337131963 using your GitHub account
Received on Tuesday, 17 October 2017 06:33:19 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:19 UTC