| pre = document.getElementById('console'); |
| pre.appendChild(document.createTextNode(str + '\n')); |
| if (document.body.clientWidth != window.innerWidth || |
| document.body.clientHeight != window.innerHeight) { |
| // Now force scroll bars. innerWidth and innerHeight should not take the scroll bar into account |
| // but clientWidth and clientHeight should. |
| document.body.style.overflow = 'scroll'; |
| if (document.body.clientWidth >= window.innerWidth || |
| document.body.clientHeight >= window.innerHeight) { |
| <body onload="runTests()"> |
| This tests that clientWidth/clientHeight on the body element in quirks mode returns the visible size of the frame. |