| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| pre = document.getElementById('console'); |
| pre.appendChild(document.createTextNode(str + '\n')); |
| if (document.documentElement.clientWidth != window.innerWidth || |
| document.documentElement.clientHeight != window.innerHeight) { |
| // Now force scroll bars. innerWidth and innerHeight should not take the scroll bar into account |
| // but clientWidth and clientHeight should. |
| document.documentElement.style.overflow = 'scroll'; |
| if (document.documentElement.clientWidth >= window.innerWidth || |
| document.documentElement.clientHeight >= window.innerHeight) { |
| <body onload="runTests()"> |
| This tests that clientWidth/clientHeight on the document element in strict mode returns the visible size of the frame. |