Firefox users: This won't render in HDR in FF. Open it in Safari if you want to see it.
Chrome also seems to support hdr. It's just Firefox that doesn't support this yet. There's an open issue for this: https://bugzilla.mozilla.org/show_bug.cgi?id=1793091
More interesting is whether CSS will be fixed to support this. There seems to be some recent work on this: https://w3c.github.io/ColorWeb-CG/
So, this hack might long term not be needed if this gets addressed properly.