You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The media query should match the Page Visibility API: “The Document is at least partially visible on at least one screen.”
That spec doesn't go into details like preview thumbnails. IMO, they should count as “visible” if they are being live updated, but I think they are often static screenshots of the last rendered version, in which case a current visibility state isn't really relevant.
The primary use case for having this in CSS is for delaying animations/transitions until the page is actually being drawn.
We briefly discussed the possibility of adding a "window is inactive" mediaquery in https://lists.w3.org/Archives/Public/www-style/2020Jan/0002.html (follow up in https://lists.w3.org/Archives/Public/www-style/2020Jan/0006.html) for issue 4579. It wouldn't solve the original issue, but might still be useful as a declarative way to access this info, which as @AmeliaBR points out is already available via JS.
Questions:
The text was updated successfully, but these errors were encountered: