Mike Morley

Dad, coder, golfer and occasional last placed triathlete.

Tests

Quick tests for answering cross device questions

Widths and Heights

screen.width
screen.availWidth
window.outerWidth
window.innerWidth
document.body.clientWidth
document.body.offsetWidth
@media device-width
@media width
screen.height
screen.availHeight
window.outerHeight
window.innerHeight
document.body.clientHeight
document.body.offsetHeight
@media device-height
@media height
window.orientation
@media orientation