Re: [csswg-drafts] [css-pseudo-4] ::selection vs ::inactive-selection (#4579)

To the question of whether you can already tell whether a document is active or inactive: yes, via the [Page Visibility API](https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API) and also older JS methods like [`document.hasFocus()`](https://developer.mozilla.org/en-US/docs/Web/API/Document/hasFocus). So exposing the same info indirectly via CSS is not likely to be a concern.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4579#issuecomment-572188785 using your GitHub account

Received on Wednesday, 8 January 2020 18:08:15 UTC