All the heavy lifting is done by shaders, actually.
But yeah, browsers are very powerful platform now. Ton of very cool free libraries and even "vanilla" it has ton of capabilities, especially for UI. I still shudder remembering making UI in Unity, for example.