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

Re: [csswg-drafts] [mediaqueries] Add inactive window MQ (#5040)

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Mon, 11 May 2020 23:23:31 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-627017554-1589239410-sysbot+gh@w3.org>
> Visibility seems a lot trickier.

The media query should match the [Page Visibility API](https://w3c.github.io/page-visibility/#visibility-states): “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.

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5040#issuecomment-627017554 using your GitHub account
Received on Monday, 11 May 2020 23:23:33 UTC

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