For Firefox, we can your text-shadow in 4 directions to simluate this
https://github.com/coolwanglu/pdf2htmlEX/pull/81/files