Viewport resize test

WOFLS

by Admiral Potato

HTML

<!DOCTYPE html>
<html>
    <head>
        <title>CATS!</title>
    </head>
    <body>
        <div id="body_pad">
            <input type="text">
        <div id="output"></div>
        </div>
    </body>
</html>

CSS

*{
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    vertical-align: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    font-style: inherit;
    font-family: inherit;
    text-align: inherit;
    text-decoration: inherit;
    color: inherit;
    background-color: transparent;
}
*:focus{
    outline: none;
}
html, body{
    height: 100%;
    width: 100%;
}

body{
    background-color: #000;
    background-image: url('http://kurzweil.com/img/bg.jpg');
    background-repeat: no-repeat;
    background-position: top center;
    vertical-align: top;
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
    font-style: normal;
    font-family: helvetica, arial, sans-serif;
    text-align: left;
    text-decoration: none;
    color: #ccc;
}
input, .button, textarea, select{
    background-color: rgba(0,0,0,0.5);
    padding: 0px 4px;
    margin: 0px 2px;
    border: 1px solid #17b;
    -moz-border-radius: 4px;
    border-radius: 4px;
}
select{
    font-family: sans-serif;
}

input:hover,input:focus,textarea:focus, select:focus{
    background-color: #123;
    color: #fff;
    border: 1px solid #19d;
}
input:focus,textarea:focus, select:focus{
    border-color: #fff;
    background-color: #123;
    color: #fff;
}
input[type="radio"]{
    vertical-align: middle;
}

#body_pad{
    padding: 72px;
}

JavaScript

var o = document.getElementById('output');

var update = function(){
    o.innerHTML = window.innerWidth + ' x ' + window.innerHeight;
}
    
setInterval(update, 10);