Created
June 30, 2011 19:11
-
-
Save parrfolio/1056967 to your computer and use it in GitHub Desktop.
Fullscreen Mode Pseudo Classes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*-- | |
-webkit-full-screen | |
-webkit-full-screen-document | |
--*/ | |
/* fullscreen mode */ | |
#video-player:-webkit-full-screen { | |
position:absolute; | |
top:0; | |
left:0; | |
width:100%; | |
} | |
/* the document that contains the fullscreen mode */ | |
:webkit-full-screen-document { | |
overflow: hidden; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fullscreen mode works in Safari 5.1+. The pseudo classes work on any element. iFrame content must have "webkitallowfullscreen" attribute.