X-browser fixes for the visual tests.