What, you think the usual text editor renders all lines just because? No, they load the lines that are currently visible + some more for scrolling. At least the ones that don't choke on a mere 100k lines. And they don't need GPU for this.
But webbrowser engines just aren't made for this, but for DOM rendering.