>its only job is to display text nicely with formatting, browsers are pretty good at
This is something that continually amazes me. Many developers seem to think that "display text on a screen" is easy, it's not.
Browsers can handle multiple fonts, multiple sizes, and crazy positioning.
Browsers can handle tons of different encodings (including stuff like UTF8 which can be a real pain to safely and correctly parse).
Browsers can display just about every single glyph on the planet without a sweat.
Browsers can handle right-to-left text right alongside left-to-right text (even switching in the same sentence!).
Browsers have a simple way to apply multiple fallback fonts (just in case your font of choice doesn't have the unicode 'HEXAGRAM FOR DIFFICULTY AT THE BEGINNING', it can fallback to a font that does).
Browser can apply simple CSS transformations to rotate text (even in 3D!) in a pretty performant way.
Browsers handle all of this, without the developer needing to spend more than 5 minutes even thinking about it, and it does so looking great.
Yeah, other UI libraries can handle most of this just fine as well, but the browser is the one platform that i've been impressed at just how well it handles typography in general. I remember how much of a fight it was to write text that went vertical to label a graph in business basic...