Terminal capabilities are assumed to include bright and 256 color SGR codes.
24 bit color support is detected based on the COLORTERM environment
variable.
Details
Default CSS may exceed or fail to cover the interline distance when two lines have background colors. To ensure lines are exactly touching use inline-block, although that has its own issues. Otherwise specify your own CSS.