MuPDF has basic HTML and CSS parsers and layout capabilities.
These are enough for typical book and report use, but are not intended to provide everything that a web browser is capable of.