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

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