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

Re: [csswg-drafts] Proposal: min-scroll-top media query (#4997)

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Mon, 04 May 2020 08:29:48 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-623330039-1588580987-sysbot+gh@w3.org>
I'm a little concerned about the potential for circularity here. this proposed media query does not directly depend on layout, so the [problem discussed in the faq](https://wiki.csswg.org/faq#selectors-that-depend-on-layout) is not directly hit, so that's encouraging. However:

* If you reduce the total height of the document, you can end up reducing the scroll position, and the media query no longer trigger. While this is a little unstable, it doesn't seem like this would generate infinite loops, so while annoying, that's probably OK
* In combination with either https://drafts.csswg.org/css-scroll-snap/, or https://drafts.csswg.org/css-scroll-anchoring-1/, it does look like you could create infinite loops. Without a solution to that problem, doing this as a media query is probably impossible.

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4997#issuecomment-623330039 using your GitHub account
Received on Monday, 4 May 2020 08:29:49 UTC

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