I don't know about the css version but your css does appear to work in Joplin if you apply it to body rather than html.