This tests focusing an element of zero width or height. WebKit should allow focusing such an element On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". PASS input = insertElement("input"); input.focus(); document.activeElement is input PASS div = insertElement("div", {tabindex: 0}); div.focus(); document.activeElement is div PASS zeroWidthInput = insertElement("input", {style: "width: 0px"}); zeroWidthInput.focus(); document.activeElement is zeroWidthInput div.innerHTML = "".replace(/