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

> 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