Use document.compatMode for quirks test in width/height method