Skip to content

Commit

Permalink
added page visibility API test
Browse files Browse the repository at this point in the history
  • Loading branch information
helgri committed Oct 4, 2012
1 parent c74ca46 commit cbab2d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions feature-detects/pagevisibility-api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// https://developer.mozilla.org/en-US/docs/DOM/Using_the_Page_Visibility_API
// http://dvcs.w3.org/hg/webperf/raw-file/tip/specs/PageVisibility/Overview.html

Modernizr.addTest('pagevisibility', !!Modernizr.prefixed("hidden", document, false));

0 comments on commit cbab2d8

Please sign in to comment.