Skip to content

Instantly share code, notes, and snippets.

@robnyman
Last active June 29, 2018 10:44
Show Gist options
  • Save robnyman/1705528 to your computer and use it in GitHub Desktop.
Save robnyman/1705528 to your computer and use it in GitHub Desktop.
Fullscreen API, CSS pseudo-class
html:-moz-full-screen {
background: red;
}
html:-webkit-full-screen {
background: red;
}
html:-ms-fullscreen {
background: red;
width: 100%; /* needed to center contents in IE */
}
html:fullscreen {
background: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment