GH-4621 added rootElement for Reveal to be configured.

I need more testing on this, and perhaps to see how to write tests on this, as tests for Reveal kinda missing.