- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Thu, 14 Dec 2017 17:25:24 +0000
- To: public-css-archive@w3.org
Can't you use an IntersectionObserver instead? https://jsfiddle.net/f2gp7pnq/
```js
new IntersectionObserver(function([{intersectionRatio}]) {
root.classList.toggle('overflowed-content', intersectionRatio < 1);
}, {root}).observe(root.lastElementChild);
```
--
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2011#issuecomment-351779626 using your GitHub account
Received on Thursday, 14 December 2017 17:25:27 UTC