Closed hkiame closed 4 years ago
document.body.appendChild(document.createTextNode("supercalifragilisticexpialidocious ".repeat(1000))); affects the width of the body and not the height. The scroll event thus not fired.
Unless you remove the space at the end, it does line-wrap and affect the height. At least, that example works fine for me.
ooh yeah. i missed the space. Thanks
document.body.appendChild(document.createTextNode("supercalifragilisticexpialidocious ".repeat(1000))); affects the width of the body and not the height. The scroll event thus not fired.