W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2020

[csswg-drafts] [css-overflow] set element as document scrolling element (#4710)

From: Tyler Sticka via GitHub <sysbot+gh@w3.org>
Date: Tue, 28 Jan 2020 18:35:24 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-556392107-1580236523-sysbot+gh@w3.org>
tylersticka has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-overflow] set element as document scrolling element ==
It's relatively straightforward to use [overflow](https://drafts.csswg.org/css-overflow-4/) properties to make a child element of a page scroll independently of the document. But it's a much larger effort currently to allow "fullscreen" elements like modals, menus and dialogs to seamlessly become the primary scrolling element while ["locking" the scroll of the parent page](https://github.com/FL3NKEY/scroll-lock).

I suspect this is an overly optimistic idea, but in a perfect world this behavior would be as simple to define as this:

```css
.menu.is-open {
  overflow: document;
}
```

(I was [encouraged to submit this issue](https://twitter.com/fantasai/status/1220851780357148674) after [writing about the idea](https://cloudfour.com/thinks/some-imaginary-css/#borrow-scroll-behavior-from-document).)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4710 using your GitHub account
Received on Tuesday, 28 January 2020 18:35:26 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 2 July 2022 03:21:27 UTC