Microsoft deservedly lost because they failed to innovate. But that isn't the case with graphics, where they have been at the forefront of innovation for well over a decade now. OpenGL has historically lagged behind DirectX in terms of features, ease of use and performance. Only in the last couple years has anyone (Mantle, Vulkan) actually begun to threaten Microsoft's dominance and if DirectX is inferior it should lose, but to equate that with how the HTML wars went is glossing over a lot of detail.