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

Re: [csswg-drafts] [css-break-3][css-overflow] Proposal for pseudo-selector :overflowed-content

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Thu, 14 Dec 2017 17:25:24 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-351779626-1513272323-sysbot+gh@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

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