It IS trivial.
Now, I'll admit that there is an enormously complex process required to render modern html and css properly. But there are several engines that do this rendering and are available as open source. So it is easy to render web pages... use one of these engines.